mirror of
https://github.com/GTNewHorizons/Botania.git
synced 2026-11-19 03:39:17 +00:00
Fixed the Ritual of Gaia's multiblock display only accepting iron rather than all valid beacon blocks.
This commit is contained in:
1 parent
5396083480
commit
f65fd2a4a9
1 file changed
+14
-1
@@ -62,6 +62,7 @@ import vazkii.botania.api.boss.IBotaniaBossWithShader;
|
||||
import vazkii.botania.api.internal.ShaderCallback;
|
||||
import vazkii.botania.api.lexicon.multiblock.Multiblock;
|
||||
import vazkii.botania.api.lexicon.multiblock.MultiblockSet;
|
||||
import vazkii.botania.api.lexicon.multiblock.component.MultiblockComponent;
|
||||
import vazkii.botania.client.core.handler.BossBarHandler;
|
||||
import vazkii.botania.client.core.helper.ShaderHelper;
|
||||
import vazkii.botania.common.Botania;
|
||||
@@ -131,7 +132,7 @@ public class EntityDoppleganger extends EntityCreature implements IBotaniaBossWi
|
||||
|
||||
for(int i = 0; i < 3; i++)
|
||||
for(int j = 0; j < 3; j++)
|
||||
mb.addComponent(i - 1, 0, j - 1, Blocks.iron_block, 0);
|
||||
mb.addComponent(new BeaconComponent(new ChunkCoordinates(i - 1, 0, j - 1)));
|
||||
|
||||
mb.addComponent(0, 1, 0, Blocks.beacon, 0);
|
||||
mb.setRenderOffset(0, -1, 0);
|
||||
@@ -805,4 +806,16 @@ public class EntityDoppleganger extends EntityCreature implements IBotaniaBossWi
|
||||
|
||||
return background ? null : shaderCallback;
|
||||
}
|
||||
|
||||
public static class BeaconComponent extends MultiblockComponent {
|
||||
|
||||
public BeaconComponent(ChunkCoordinates relPos) {
|
||||
super(relPos, Blocks.iron_block, 0);
|
||||
}
|
||||
|
||||
public boolean matches(World world, int x, int y, int z) {
|
||||
return world.getBlock(x, y, z).isBeaconBase(world, x, y, z, x - relPos.posX, y - relPos.posY, z - relPos.posZ);
|
||||
};
|
||||
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user