Compare commits

..
3 Commits
Author SHA1 Message Date
sisyphussy 2127d30d16 Dynamism bug fixes (#71) 2025-09-22 09:04:52 +02:00
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 12 additions and 7 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}
@@ -165,7 +165,7 @@ public class TileAnimationTablet extends TileEntity implements IInventory, IMova
}
initiateSwing();
}
} catch (Exception e) {
} catch (Throwable e) {
e.printStackTrace();
List<EntityPlayer> list = worldObj.getEntitiesWithinAABB(
EntityPlayer.class,
@@ -327,7 +327,8 @@ 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);
block.setBlockBoundsBasedOnState(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 +374,14 @@ 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);
block = worldObj.getBlock(x, y, z);
block.setBlockBoundsBasedOnState(worldObj, x, y, z);
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);
}
}
}