-
-
Notifications
You must be signed in to change notification settings - Fork 108
MaterialTag.sides,snowable,switchable Property Modernization #2661
New issue
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
base: dev
Are you sure you want to change the base?
Conversation
} | ||
|
||
// Break off this portion of the code from execute() so it can be used in both execute and the delayed runnable | ||
public void switchBlock(ScriptEntry scriptEntry, Location interactLocation, SwitchState switchState, boolean physics) { | ||
Block block = interactLocation.getBlock(); | ||
BlockData data1 = block.getBlockData(); | ||
MaterialTag materialTag = new MaterialTag(data1); | ||
MaterialSwitchable switchable = MaterialSwitchable.getFrom(materialTag); | ||
if (switchable == null) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why is the describes check just gone?
return (SculkShrieker) material.getModernData(); | ||
}*/ | ||
|
||
public boolean getState() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
considering getState was used in other code, it should probably be left as-is, same as setState was
public static final String[] handledMechs = new String[] { | ||
"snowy" | ||
}; | ||
MaterialTag material; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why is this here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This code would produce an error, this value is read from but never set, indicating you didn't actually test this PR.
MaterialTag.sides
property.MaterialTag.snowable
property.MaterialTag.switchable
property.