Willbl3pic Posted August 10, 2016 Share Posted August 10, 2016 I don't get this... these two values, pos and thisPos, are exactly the same if the block is being looked at, and the log says so too, but they are apparently not equal??? Code: https://github.com/williambl/EssentialFeatures/blob/master/src/main/java/net/anti_quark/EssentialFeatures/common/tileentity/TileEntityViewedBlock.java Quote Link to comment Share on other sites More sharing options...
Animefan8888 Posted August 10, 2016 Share Posted August 10, 2016 Java uses objects for checking if something is equal instead you should check if pos.getX() = thispos.getX() etc. Quote VANILLA MINECRAFT CLASSES ARE THE BEST RESOURCES WHEN MODDING I will be posting 1.15.2 modding tutorials on this channel. If you want to be notified of it do the normal YouTube stuff like subscribing, ect. Forge and vanilla BlockState generator. Link to comment Share on other sites More sharing options...
Willbl3pic Posted August 10, 2016 Author Share Posted August 10, 2016 -snip- Ooooh... ok! Thanks! It works now... Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.