fixed fluid behavior, close #1510
This commit is contained in:
parent
8f3e836c7f
commit
bf6f4621c5
1 changed files with 13 additions and 1 deletions
|
@ -48,10 +48,22 @@ public class SchematicFluid extends SchematicBlock {
|
|||
return meta != 0;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void readFromWorld(IBuilderContext context, int x, int y, int z) {
|
||||
// Cancel storage of requirements
|
||||
}
|
||||
|
||||
@Override
|
||||
public void writeToWorld(IBuilderContext context, int x, int y, int z) {
|
||||
if (meta == 0) {
|
||||
context.world().setBlock(x, y, z, block, 0,1);
|
||||
context.world().setBlock(x, y, z, block, 0, 3);
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public void postProcessing(IBuilderContext context, int x, int y, int z) {
|
||||
if (meta != 0) {
|
||||
context.world().setBlock(x, y, z, block, meta, 3);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue