Fixed getting and setting of blocks in unloaded chunks
This commit is contained in:
@@ -162,6 +162,8 @@ public class EditSession {
|
||||
return false;
|
||||
}
|
||||
|
||||
world.checkLoadedChuck(pt);
|
||||
|
||||
// No invalid blocks
|
||||
if (!world.isValidBlockType(type)) {
|
||||
return false;
|
||||
@@ -414,6 +416,8 @@ public class EditSession {
|
||||
* @return BaseBlock
|
||||
*/
|
||||
public BaseBlock rawGetBlock(Vector pt) {
|
||||
world.checkLoadedChuck(pt);
|
||||
|
||||
int type = world.getBlockType(pt);
|
||||
int data = world.getBlockData(pt);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user