Mirror von
https://github.com/ViaVersion/ViaVersion.git
synchronisiert 2024-12-27 08:30:09 +01:00
Improve block placing a bit
Dieser Commit ist enthalten in:
Ursprung
081c23ad8b
Commit
0992c74351
@ -43,7 +43,7 @@ public class PaperPatch implements Listener {
|
|||||||
BlockFace relative = e.getBlockAgainst().getFace(e.getBlock());
|
BlockFace relative = e.getBlockAgainst().getFace(e.getBlock());
|
||||||
// Are they towering up, (handles some latency)
|
// Are they towering up, (handles some latency)
|
||||||
if(relative == BlockFace.UP){
|
if(relative == BlockFace.UP){
|
||||||
if(diff.getY() <= 1.1D && diff.getY() >= 0D){
|
if(diff.getY() < 1D && diff.getY() >= 0D){
|
||||||
e.setCancelled(true);
|
e.setCancelled(true);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren