Mirror von
https://github.com/ViaVersion/ViaVersion.git
synchronisiert 2024-12-26 16:12:42 +01:00
Fix paperpatch
Dieser Commit ist enthalten in:
Ursprung
da7a57026d
Commit
73a62b8123
@ -26,7 +26,7 @@ public class PaperPatch extends ViaBukkitListener {
|
|||||||
public void onPlace(BlockPlaceEvent e) {
|
public void onPlace(BlockPlaceEvent e) {
|
||||||
if (isOnPipe(e.getPlayer())) {
|
if (isOnPipe(e.getPlayer())) {
|
||||||
Location location = e.getPlayer().getLocation();
|
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();
|
Material block = e.getBlockPlaced().getType();
|
||||||
if (isPlacable(block)) {
|
if (isPlacable(block)) {
|
||||||
return;
|
return;
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren