Mirror von
https://github.com/IntellectualSites/FastAsyncWorldEdit.git
synchronisiert 2024-11-03 01:50:07 +01:00
Update EditSession.rawSetBlock() to limit Y between 0 and 127.
Dieser Commit ist enthalten in:
Ursprung
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());
|
||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren