mirror of
https://github.com/GTNewHorizons/StorageDrawers.git
synced 2026-11-20 12:20:05 +00:00
Make individual drawer faces solid.
This commit is contained in:
1 parent
cab2f52d39
commit
2a0faddd67
4 files changed
+17
-3
No files matched your search
@@ -28,7 +28,7 @@ public class StorageDrawers
|
||||
{
|
||||
public static final String MOD_ID = "StorageDrawers";
|
||||
public static final String MOD_NAME = "Storage Drawers";
|
||||
public static final String MOD_VERSION = "1.2.2";
|
||||
public static final String MOD_VERSION = "@VERSION@";
|
||||
public static final String SOURCE_PATH = "com.jaquadro.minecraft.storagedrawers.";
|
||||
|
||||
public static final Api api = new Api();
|
||||
|
||||
@@ -31,6 +31,7 @@ import net.minecraft.util.MathHelper;
|
||||
import net.minecraft.util.MovingObjectPosition;
|
||||
import net.minecraft.world.IBlockAccess;
|
||||
import net.minecraft.world.World;
|
||||
import net.minecraftforge.common.util.ForgeDirection;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Random;
|
||||
@@ -295,6 +296,17 @@ public class BlockDrawers extends BlockContainer implements IExtendedBlockClickH
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean isSideSolid (IBlockAccess world, int x, int y, int z, ForgeDirection side) {
|
||||
if (halfDepth)
|
||||
return false;
|
||||
|
||||
if (side.ordinal() != getTileEntity(world, x, y, z).getDirection())
|
||||
return true;
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
private void dropItemStack (World world, int x, int y, int z, EntityPlayer player, ItemStack stack) {
|
||||
EntityItem entity = new EntityItem(world, player.posX, player.posY, player.posZ, stack);
|
||||
world.spawnEntityInWorld(entity);
|
||||
|
||||
Reference in new issue
Block a user