Make individual drawer faces solid.

This commit is contained in:
Justin Aquadro committed 2015-02-20 23:44:39 -05:00
1 parent cab2f52d39
commit 2a0faddd67
4 files changed
+17 -3

No files matched your search

+3 -1
View File
@@ -17,13 +17,15 @@ buildscript {
apply plugin: 'forge'
version = "1.7.10-1.2.2"
version = "1.7.10-1.2.3"
group= "com.jaquadro.minecraft.storagedrawers" // http://maven.apache.org/guides/mini/guide-naming-conventions.html
archivesBaseName = "StorageDrawers"
minecraft {
version = "1.7.10-10.13.2.1291"
assetDir = "runtime/assets"
replace '@VERSION@', project.version
}
sourceSets.main {
+1 -1
View File
@@ -3,7 +3,7 @@
"modid": "StorageDrawers",
"name": "Storage Drawers",
"description": "Multi-drawer storage blocks for quick storage and retrieval.",
"version": "1.2.2",
"version": "1.0.0",
"credits": "By jaquadro",
"logoFile": "",
"url": "http://www.jaquadro.com/",
@@ -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);