fix: infitiy bucket can replace interactive blocks if clicked on block directly next to it
Some checks failed
Gitea Actions Demo / Build-Gradle (push) Failing after 1m46s
Some checks failed
Gitea Actions Demo / Build-Gradle (push) Failing after 1m46s
This commit is contained in:
@@ -130,7 +130,10 @@ public class InfinityWaterBucket implements Listener {
|
|||||||
targetBlock.setType(Material.WATER); // refresh water
|
targetBlock.setType(Material.WATER); // refresh water
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
targetBlock.setType(Material.WATER);
|
// Only place water if the target block is replaceable or air
|
||||||
|
if (targetBlock.isEmpty() || targetBlock.isPassable()) {
|
||||||
|
targetBlock.setType(Material.WATER);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user