We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Currently, MUD2 does not play nicely with public libraries. The functions in the Perlin.sol file all have public modifiers.
public
Inability to use Perlin noise in systems.
// SPDX-License-Identifier: MIT pragma solidity >=0.8.0; import { System } from "@latticexyz/world/src/System.sol"; import { Perlin } from "@latticexyz/noise/contracts/Perlin.sol"; contract MySystem is System { function callsPerlin(int256 positionX, int256 positionY) public pure returns (uint256) { int128 perlinNoise = Perlin.noise2d(positionX, positionY, 0, 0); } }
The text was updated successfully, but these errors were encountered:
fixed in #934, you can update your project to the latest MUD with pnpm mud:up (assuming you started from a template)
pnpm mud:up
Sorry, something went wrong.
Thanks!
Successfully merging a pull request may close this issue.
Description
Currently, MUD2 does not play nicely with public libraries. The functions in the Perlin.sol file all have
public
modifiers.Motivation
Inability to use Perlin noise in systems.
Minimal Repro
The text was updated successfully, but these errors were encountered: