mirror of
https://github.com/GTNewHorizons/Gadomancy.git
synced 2026-11-27 23:33:14 +00:00
General Code Maintenance
-might fix https://github.com/GTNewHorizons/NewHorizons/issues/5048 -optimised imports -removed some unused null checks -qualified names, generally made the code more readable Signed-off-by: bartimaeusnek <[email protected]>
This commit is contained in:
1 parent
70064913d8
commit
bab9ad582f
246 files changed
+4892
-5114
No files matched your search
@@ -29,7 +29,7 @@ import java.util.List;
|
||||
*/
|
||||
public class BlockRemoteJar extends BlockJar {
|
||||
public BlockRemoteJar() {
|
||||
setCreativeTab(RegisteredItems.creativeTab);
|
||||
this.setCreativeTab(RegisteredItems.creativeTab);
|
||||
}
|
||||
|
||||
@Override
|
||||
@@ -59,7 +59,7 @@ public class BlockRemoteJar extends BlockJar {
|
||||
if(drop.getItem() == ConfigItems.itemJarFilled || drop.getItem() == Item.getItemFromBlock(this)) {
|
||||
drop.func_150996_a(Item.getItemFromBlock(this));
|
||||
|
||||
TileRemoteJar tile = getJarTile(world, x, y, z);
|
||||
TileRemoteJar tile = BlockRemoteJar.getJarTile(world, x, y, z);
|
||||
if(tile.networkId != null) {
|
||||
NBTHelper.setUUID(NBTHelper.getData(drop), "networkId", tile.networkId);
|
||||
}
|
||||
@@ -93,6 +93,6 @@ public class BlockRemoteJar extends BlockJar {
|
||||
}
|
||||
|
||||
public static TileRemoteJar getJarTile(World world, int x, int y, int z) {
|
||||
return getJarTile(world.getTileEntity(x, y, z));
|
||||
return BlockRemoteJar.getJarTile(world.getTileEntity(x, y, z));
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user