mirror of
https://github.com/plexusorg/Plex-FAWE.git
synced 2024-11-16 17:16:11 +00:00
Update EditSession.rawSetBlock() to limit Y between 0 and 127.
This commit is contained in:
parent
767c445f4c
commit
778314f9e4
@ -102,6 +102,11 @@ public class EditSession {
|
||||
* @return Whether the block changed
|
||||
*/
|
||||
private boolean rawSetBlock(Vector pt, BaseBlock block) {
|
||||
int y = pt.getBlockY();
|
||||
if (y < 0 || y > 127) {
|
||||
return false;
|
||||
}
|
||||
|
||||
boolean result = server.setBlockType(pt, block.getID());
|
||||
if (block.getID() != 0) {
|
||||
server.setBlockData(pt, block.getData());
|
||||
|
Loading…
Reference in New Issue
Block a user