Compare commits

..
2 Commits
Author SHA1 Message Date
Martin Robertz 5268737e2e update 2025-09-21 21:33:20 +02:00
sisyphussy c075644243 Fix crash (#70) 2025-09-21 21:32:25 +02:00
2 changed files with 8 additions and 6 deletions

No files matched your search

+1 -1
View File
@@ -13,7 +13,7 @@ dependencies {
compileOnly('com.github.GTNewHorizons:EnderCore:0.4.8:dev') {transitive=false}
compileOnly('com.github.GTNewHorizons:EnderIO:2.9.22:dev') {transitive=false}
compileOnly('com.github.GTNewHorizons:EnderStorage:1.7.7:dev') {transitive=false}
compileOnly('com.github.GTNewHorizons:waila:1.8.13:api') {transitive=false}
compileOnly('com.github.GTNewHorizons:waila:1.8.14:api') {transitive=false}
compileOnly('com.github.GTNewHorizons:TinkersConstruct:1.13.54-GTNH:dev') {transitive=false}
compileOnly('com.github.GTNewHorizons:ForgeMultipart:1.6.8:dev') {transitive=false}
compileOnly('com.github.GTNewHorizons:CodeChickenCore:1.4.7:dev') {transitive=false}
@@ -327,7 +327,7 @@ public class TileAnimationTablet extends TileEntity implements IInventory, IMova
position.yCoord = yCoord + 0.5f;
position.zCoord = zCoord + 0.5f;
if (!worldObj.isAirBlock(x, y, z)) {
AxisAlignedBB aabb = block.getSelectedBoundingBoxFromPool(worldObj, x, y, z);
AxisAlignedBB aabb = block.getCollisionBoundingBoxFromPool(worldObj, x, y, z);
if (aabb != null) {
hit = block.collisionRayTrace(worldObj, x, y, z, position, getMiddleOfAABB(aabb));
}
@@ -373,10 +373,12 @@ public class TileAnimationTablet extends TileEntity implements IInventory, IMova
// Use the block beneath
y--;
if (!worldObj.isAirBlock(x, y, z)) {
AxisAlignedBB aabb = block.getSelectedBoundingBoxFromPool(worldObj, x, y, z);
Vec3 vec = getMiddleOfAABB(aabb);
vec.yCoord = (aabb.maxY - y);
hit = new MovingObjectPosition(x, y, z, ForgeDirection.UP.ordinal(), vec, false);
AxisAlignedBB aabb = block.getCollisionBoundingBoxFromPool(worldObj, x, y, z);
if (aabb != null) {
Vec3 vec = getMiddleOfAABB(aabb);
vec.yCoord = (aabb.maxY - y);
hit = new MovingObjectPosition(x, y, z, ForgeDirection.UP.ordinal(), vec, false);
}
}
}