Minor cleanups (#50)

* Finalize, minor alloc reduction

Also enable Jabel and generic injection

* Update dependencies.gradle

* Clean up Machine a bit

* spotless

more enhanced instanceof

* Update ModuleMachine.java

* More clen

* WARN: Removed exception catching

* Many, many tiny patches + birthday fix

* Spotless

* Spotless again

* Fix getLow and clamp tolerance value

* Revert event -> ignored on unused event parameters

* Rename instanceof variables

* Update Machine.java

* Use StringBuilder

* Cache getStack()

* Oops, Jabel can't handle that

* Spotless

* Spotless again

My IDE was fighting with it

* Remove unused elements + scream test success
This commit is contained in:
ah-OOG-ah authored and GitHub committed 2024-09-26 16:59:20 +02:00
1 parent 6b4f3eb1c7
commit f0f14bb278
325 files changed
+1205 -1868

No files matched your search

@@ -13,9 +13,9 @@ import cpw.mods.fml.relauncher.SideOnly;
public class ItemETSlab extends ItemMetadata {
private boolean isFullBlock;
private BlockETSlab theHalfSlab;
private BlockETSlab doubleSlab;
private final boolean isFullBlock;
private final BlockETSlab theHalfSlab;
private final BlockETSlab doubleSlab;
public ItemETSlab(Block block) {
super(block);
@@ -54,11 +54,11 @@ public class ItemETSlab extends ItemMetadata {
}
return true;
}
return func_77888_a(stack, player, world, x, y, z, meta)
return func_77888_a(stack, world, x, y, z, meta)
|| super.onItemUse(stack, player, world, x, y, z, meta, hitX, hitY, hitZ);
}
private boolean func_77888_a(ItemStack stack, EntityPlayer player, World world, int x, int y, int z, int side) {
private boolean func_77888_a(ItemStack stack, World world, int x, int y, int z, int side) {
if (side == 0) {
y--;
} else if (side == 1) {