Skip to content
This repository has been archived by the owner on Jul 16, 2022. It is now read-only.

Commit

Permalink
fix: saving block data at wrong position
Browse files Browse the repository at this point in the history
  • Loading branch information
xtex committed Oct 3, 2021
1 parent 28a46c2 commit c211e51
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 7 deletions.
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ plugins {
allprojects {

group 'top.yertinmc.regioncore'
version '1.6'
version '1.7'

repositories {
mavenCentral()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -112,11 +112,6 @@ public void onBlockFade(BlockFadeEvent event) {
onBlockRemove(event);
}

@EventHandler(priority = EventPriority.HIGHEST)
public void onBlockMoved(BlockFromToEvent event) {
onBlockRemove(event);
}

@EventHandler(priority = EventPriority.HIGHEST)
public void onEntityChangeBlock(EntityChangeBlockEvent event) {
onBlockRemove(event.getBlock());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,7 @@ public void set(int x, int y, int z, Object data) {
int worldChunkPosX = x / chunkWidth;
int worldChunkPosZ = z / chunkWidth;
int regionChunkPosX = worldChunkPosX % regionSize;
int regionChunkPosZ = worldChunkPosX % regionSize;
int regionChunkPosZ = worldChunkPosZ % regionSize;
int chunkOffsetX = x % chunkWidth;
int chunkOffsetZ = z % chunkWidth;
@Nullable Object chunkData = data == null ? region.getData().getChunkData(regionChunkPosX, regionChunkPosZ) :
Expand Down

0 comments on commit c211e51

Please sign in to comment.