mirror of
https://github.com/HbmMods/Hbm-s-Nuclear-Tech-GIT.git
synced 2026-01-25 10:32:49 +00:00
augh
This commit is contained in:
parent
5372884c50
commit
d9498cb2dc
@ -87,13 +87,13 @@ public class DungeonSpawner extends BlockContainer {
|
||||
int z = tile.zCoord;
|
||||
if(tile.phase == 0) {
|
||||
if(world.getTotalWorldTime() % 20 != 0) return false;
|
||||
return !world.getEntitiesWithinAABB(EntityPlayer.class, AxisAlignedBB.getBoundingBox(x, y, z, x + 1, y + 1, z + 1).expand(20, 10, 20)).isEmpty();
|
||||
//return !world.getEntitiesWithinAABB(EntityPlayer.class, AxisAlignedBB.getBoundingBox(x, y, z, x + 1, y + 1, z + 1).expand(20, 10, 20)).isEmpty();
|
||||
}
|
||||
if(tile.phase < 3) {
|
||||
if(world.getTotalWorldTime() % 20 != 0 || tile.timer < 60) return false;
|
||||
return world.getEntitiesWithinAABB(EntityUndeadSoldier.class, AxisAlignedBB.getBoundingBox(x, y, z, x + 1, y + 1, z + 1).expand(50, 20, 50)).isEmpty();
|
||||
//return world.getEntitiesWithinAABB(EntityUndeadSoldier.class, AxisAlignedBB.getBoundingBox(x, y, z, x + 1, y + 1, z + 1).expand(50, 20, 50)).isEmpty();
|
||||
}
|
||||
return true;
|
||||
return false;
|
||||
};
|
||||
|
||||
public static Consumer<TileEntityDungeonSpawner> PHASE_TEST = (tile) -> {
|
||||
|
||||
@ -506,7 +506,7 @@ public class ItemConveyorWand extends Item implements ILookOverlay {
|
||||
@SideOnly(Side.CLIENT)
|
||||
public void printHook(Pre event, World world, int x, int y, int z) {
|
||||
EntityPlayer player = MainRegistry.proxy.me();
|
||||
if(player == null || !player.isSneaking()) return;
|
||||
if(player == null || !player.isSneaking() || !player.capabilities.isCreativeMode) return;
|
||||
|
||||
Block block = world.getBlock(x, y, z);
|
||||
if(block instanceof BlockConveyorBase) {
|
||||
|
||||
@ -75,7 +75,7 @@ public class MagazineFullReload extends MagazineSingleTypeBase {
|
||||
|
||||
if(config.ammo.matchesRecipe(slot, true)) {
|
||||
int alreadyLoaded = this.getAmount(stack, inventory);
|
||||
int wantsToLoad = (int) Math.ceil((double) this.getCapacity(stack) / (double) config.ammoReloadCount) - (alreadyLoaded / config.ammoReloadCount);
|
||||
int wantsToLoad = (int) Math.ceil((double) (this.getCapacity(stack) - alreadyLoaded) / (double) config.ammoReloadCount);
|
||||
int toLoad = Math.min(wantsToLoad, slot.stackSize);
|
||||
this.setAmount(stack, Math.min((toLoad * config.ammoReloadCount) + alreadyLoaded, this.capacity));
|
||||
inventory.decrStackSize(i, toLoad);
|
||||
|
||||
BIN
src/main/resources/assets/hbm/structures/spire.nbt
Normal file
BIN
src/main/resources/assets/hbm/structures/spire.nbt
Normal file
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user