mirror of
https://github.com/GTNewHorizons/AE2FluidCraft-Rework.git
synced 2026-11-17 19:05:29 +00:00
fix fluid buffer bug
This commit is contained in:
1 parent
77ccfb5606
commit
c9ba859d34
4 files changed
+20
-28
No files matched your search
@@ -37,6 +37,7 @@ public class BlockFluidBuffer extends FCBaseBlock {
|
||||
if (Platform.isServer()) {
|
||||
TileFluidBuffer tile = getTileEntity(world, x, y, z);
|
||||
if (tile == null) return false;
|
||||
if(player.isSneaking() && itemStack == null) return !tile.setFluid(null);
|
||||
IAEFluidStack ias = tile.getAEStoreFluidStack();
|
||||
if (fs == null && ias != null) {
|
||||
player.addChatMessage(new ChatComponentText(
|
||||
@@ -47,7 +48,7 @@ public class BlockFluidBuffer extends FCBaseBlock {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
return fs != null;
|
||||
return fs != null || (player.isSneaking() && itemStack == null);
|
||||
}
|
||||
|
||||
public BlockFluidBuffer register() {
|
||||
|
||||
Reference in new issue
Block a user