-
Notifications
You must be signed in to change notification settings - Fork 96
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
Move torch variations into tile data #555
Conversation
Please fix conflicts. |
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.
Actually, when looking at this again, won't this break all saves that have torches?
The code to load torch is not removed, so it is not affected. |
Conflicts resolved. |
Yes, but then it tries to load the tourch with a the old name on new saves. That will cause an error. |
Yes. And I fixed that error in the latest commit recently. |
# Conflicts: # src/client/java/minicraft/level/tile/Tile.java # src/client/java/minicraft/level/tile/Tiles.java # src/client/java/minicraft/level/tile/TorchTile.java
Using duplications in the main method is not a great idea, so this changes torch tile variations into handling the tile data instead.
When #437 is merged,(outdated)TileModel
can be used to mergeTorchItem
into a generalTileItem
instance.TorchItem
is merged toTileItem
with the advanced feature fromTileModel
. Tile sprite connection fields are converted to methods to suit the changes.