diff options
author | Reagan <45805674+ReaganAR@users.noreply.github.com> | 2024-06-29 14:58:43 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-06-29 21:58:43 +0200 |
commit | 9b14775b1bdccc1574ce861864e17384df3d1087 (patch) | |
tree | 7b7f4b9fb79d587900f50fa031533741d8f9f51d /src/main/java/goodgenerator/blocks | |
parent | 3326a0839872078f75f3649e8b543f1212195417 (diff) | |
download | GT5-Unofficial-9b14775b1bdccc1574ce861864e17384df3d1087.tar.gz GT5-Unofficial-9b14775b1bdccc1574ce861864e17384df3d1087.tar.bz2 GT5-Unofficial-9b14775b1bdccc1574ce861864e17384df3d1087.zip |
Fix flux gas position and randomness from taintedEssentia in LEG (#2683)
Fix fluxgoo position and randomness from taintedEssentia in LEG
Diffstat (limited to 'src/main/java/goodgenerator/blocks')
-rw-r--r-- | src/main/java/goodgenerator/blocks/tileEntity/LargeEssentiaGenerator.java | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/main/java/goodgenerator/blocks/tileEntity/LargeEssentiaGenerator.java b/src/main/java/goodgenerator/blocks/tileEntity/LargeEssentiaGenerator.java index b590378922..b7ab940b2f 100644 --- a/src/main/java/goodgenerator/blocks/tileEntity/LargeEssentiaGenerator.java +++ b/src/main/java/goodgenerator/blocks/tileEntity/LargeEssentiaGenerator.java @@ -361,9 +361,10 @@ public class LargeEssentiaGenerator extends GT_MetaTileEntity_TooltipMultiBlockB if (R.nextInt(10000) < chance) { World world = getBaseMetaTileEntity().getWorld(); - int tX = R.nextInt(4); - int tZ = R.nextInt(4); - if (world.isAirBlock(tX, 0, tZ)) world.setBlock(tX, 0, tZ, ConfigBlocks.blockFluxGas, R.nextInt(8), 3); + int tX = getBaseMetaTileEntity().getXCoord() + R.nextInt(5) - 2; + int tY = getBaseMetaTileEntity().getYCoord(); + int tZ = getBaseMetaTileEntity().getZCoord() + R.nextInt(5) - 2; + if (world.isAirBlock(tX, tY, tZ)) world.setBlock(tX, tY, tZ, ConfigBlocks.blockFluxGas, R.nextInt(8), 3); } return (long) (baseValue * ceoOutput); |