Permalink
Browse files

Bumped version and fixed LazyBlock issue.

  • Loading branch information...
me4502 committed Jan 3, 2018
1 parent 011c9b0 commit 116cc37cb17ee843f76b94ce27b2a7e9deb33a35
Showing with 9 additions and 4 deletions.
  1. +1 −1 build.gradle
  2. +8 −3 worldedit-core/src/main/java/com/sk89q/worldedit/blocks/BaseBlock.java
View
@@ -35,7 +35,7 @@ buildscript {
allprojects {
group = 'com.sk89q.worldedit'
version = '6.1.9-SNAPSHOT'
version = '7.0.0-SNAPSHOT'
}
if (!project.hasProperty("artifactory_contextUrl")) ext.artifactory_contextUrl = "http://localhost"
@@ -81,7 +81,7 @@
*/
@Deprecated
public BaseBlock(int id) {
setId(id);
internalSetId(id);
internalSetData(0);
}
@@ -104,7 +104,7 @@ public BaseBlock(BlockType blockType) {
*/
@Deprecated
public BaseBlock(int id, int data) {
setId(id);
internalSetId(id);
internalSetData(data);
}
@@ -133,7 +133,7 @@ public BaseBlock(BlockType blockType, int data) {
*/
@Deprecated
public BaseBlock(int id, int data, @Nullable CompoundTag nbtData) {
setId(id);
internalSetId(id);
setData(data);
setNbtData(nbtData);
}
@@ -195,6 +195,11 @@ protected final void internalSetType(BlockType type) {
@Override
@Deprecated
public void setId(int id) {
internalSetId(id);
}
@Deprecated
private void internalSetId(int id) {
BlockType type = BlockTypes.getBlockType(BundledBlockData.getInstance().fromLegacyId(id));
internalSetType(type);
}

0 comments on commit 116cc37

Please sign in to comment.