Compare commits

..
Author SHA1 Message Date
Dream Master c5fea593fc update 2025-03-11 13:47:30 +01:00
Glease 61334b8fe4 close container if parent item is gone 2025-03-11 10:47:13 +08:00
4 changed files with 16 additions and 14 deletions

No files matched your search

-1
View File
@@ -30,4 +30,3 @@ src/main/resources/mixins.*([!.]).json
*.bat
*.DS_Store
!gradlew.bat
layout.json
+1 -1
View File
@@ -2,7 +2,7 @@
dependencies {
api('com.github.GTNewHorizons:Baubles:1.0.4:dev')
api('com.github.GTNewHorizons:Applied-Energistics-2-Unofficial:rv3-beta-554-GTNH:api')
api('com.github.GTNewHorizons:Applied-Energistics-2-Unofficial:rv3-beta-549-GTNH:api')
api('thaumcraft:Thaumcraft:1.7.10-4.2.3.5:dev')
@@ -30,8 +30,10 @@ public class GuiButtonWG extends GuiButton {
@Override
public void drawButton(Minecraft par1Minecraft, int par2, int par3) {
par1Minecraft.renderEngine.bindTexture(gui);
int y = !enabled ? 13 : 0;
drawTexturedModalRect(xPosition, yPosition, 176, y, width, height);
if (enabled) {
par1Minecraft.renderEngine.bindTexture(gui);
int y = !enabled ? 13 : 0;
drawTexturedModalRect(xPosition, yPosition, 176, y, width, height);
}
}
}
@@ -130,16 +130,17 @@ public class BlockBedrockPortal extends BlockMod {
(EntityPlayerMP) entity,
ConfigHandler.bedrockDimensionID,
new TeleporterBedrock((WorldServer) par1World));
if (entity.worldObj.isAirBlock(par2, 249, par4)) {
entity.worldObj.setBlock(par2, 249, par4, Blocks.stone);
if (entity.worldObj.getBlock(par2, 250, par4) == Blocks.bedrock) {
entity.worldObj.setBlock(par2, 250, par4, Blocks.air);
}
for (int i = 250; i < 254; i++) {
Block block = entity.worldObj.getBlock(par2, i, par4);
// something seems to be turning our bedrock to plain stone
// let's also check that
if (block == Blocks.stone || block == Blocks.bedrock) {
entity.worldObj.setBlockToAir(par2, i, par4);
}
if (entity.worldObj.getBlock(par2, 251, par4) == Blocks.bedrock) {
entity.worldObj.setBlock(par2, 251, par4, Blocks.air);
}
if (entity.worldObj.getBlock(par2, 252, par4) == Blocks.bedrock) {
entity.worldObj.setBlock(par2, 252, par4, Blocks.air);
}
if (entity.worldObj.getBlock(par2, 253, par4) == Blocks.bedrock) {
entity.worldObj.setBlock(par2, 253, par4, Blocks.air);
}
if (entity.worldObj.getBlock(par2, 254, par4) == Blocks.bedrock) {
entity.worldObj.setBlock(par2, 254, par4, this);