mirror of
https://github.com/PaperMC/Paper.git
synced 2025-08-16 04:33:56 -07:00
Fixed breaking at world height in creative. Fixes BUKKIT-997
By: feildmaster <admin@feildmaster.com>
This commit is contained in:
@@ -155,7 +155,7 @@ public class CraftEventFactory {
|
|||||||
Block blockClicked = craftWorld.getBlockAt(clickedX, clickedY, clickedZ);
|
Block blockClicked = craftWorld.getBlockAt(clickedX, clickedY, clickedZ);
|
||||||
BlockFace blockFace = CraftBlock.notchToBlockFace(clickedFace);
|
BlockFace blockFace = CraftBlock.notchToBlockFace(clickedFace);
|
||||||
|
|
||||||
if (clickedY == 255) {
|
if (clickedY > 255) {
|
||||||
blockClicked = null;
|
blockClicked = null;
|
||||||
switch (action) {
|
switch (action) {
|
||||||
case LEFT_CLICK_BLOCK:
|
case LEFT_CLICK_BLOCK:
|
||||||
|
Reference in New Issue
Block a user