mirror of
https://github.com/ViaVersion/ViaVersion.git
synced 2024-10-31 23:59:33 +01:00
Fix paperpatch
This commit is contained in:
parent
da7a57026d
commit
73a62b8123
@ -26,7 +26,7 @@ public class PaperPatch extends ViaBukkitListener {
|
||||
public void onPlace(BlockPlaceEvent e) {
|
||||
if (isOnPipe(e.getPlayer())) {
|
||||
Location location = e.getPlayer().getLocation();
|
||||
Location diff = location.subtract(e.getBlock().getLocation().add(0.5D, 0, 0.5D));
|
||||
Location diff = location.clone().subtract(e.getBlock().getLocation().add(0.5D, 0, 0.5D));
|
||||
Material block = e.getBlockPlaced().getType();
|
||||
if (isPlacable(block)) {
|
||||
return;
|
||||
|
Loading…
Reference in New Issue
Block a user