mirror of
https://github.com/GTNewHorizons/ForestryMC.git
synced 2026-11-20 03:59:45 +00:00
Cleanup
This commit is contained in:
1 parent
d827a0f132
commit
d132a0ae62
2 files changed
+2
-9
No files matched your search
@@ -28,7 +28,6 @@ import net.minecraft.block.Block;
|
||||
import net.minecraft.entity.Entity;
|
||||
import net.minecraft.entity.EntityList;
|
||||
import net.minecraft.entity.EntityLiving;
|
||||
import net.minecraft.entity.IEntityLivingData;
|
||||
import net.minecraft.entity.item.EntityItem;
|
||||
import net.minecraft.entity.player.EntityPlayer;
|
||||
import net.minecraft.init.Blocks;
|
||||
@@ -37,7 +36,6 @@ import net.minecraft.inventory.InventoryLargeChest;
|
||||
import net.minecraft.item.ItemStack;
|
||||
import net.minecraft.tileentity.TileEntity;
|
||||
import net.minecraft.tileentity.TileEntityChest;
|
||||
import net.minecraft.util.ChatComponentText;
|
||||
import net.minecraft.util.MathHelper;
|
||||
import net.minecraft.world.World;
|
||||
import net.minecraft.world.biome.BiomeGenBase;
|
||||
@@ -45,7 +43,6 @@ import net.minecraft.world.biome.BiomeGenBase;
|
||||
import java.security.MessageDigest;
|
||||
import java.security.cert.Certificate;
|
||||
import java.util.Arrays;
|
||||
import java.util.Iterator;
|
||||
import java.util.Map;
|
||||
import java.util.Random;
|
||||
|
||||
@@ -57,8 +54,7 @@ public class Utils {
|
||||
if (rand == null)
|
||||
rand = new Random();
|
||||
|
||||
int uid = rand.nextInt();
|
||||
return uid;
|
||||
return rand.nextInt();
|
||||
}
|
||||
|
||||
public static void dropInventory(TileForestry tile, World world, int x, int y, int z) {
|
||||
|
||||
@@ -85,10 +85,7 @@ public class ItemBackpack extends ItemInventoried {
|
||||
|
||||
@Override
|
||||
public boolean onItemUse(ItemStack itemstack, EntityPlayer player, World world, int x, int y, int z, int side, float hitX, float hitY, float hitZ) {
|
||||
if (getInventoryHit(world, x, y, z, side) != null)
|
||||
return true;
|
||||
else
|
||||
return false;
|
||||
return getInventoryHit(world, x, y, z, side) != null;
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in new issue
Block a user