Skip to content
Permalink
Browse files

Update SpongeCommon and fix #24

  • Loading branch information...
Yeregorix committed Jul 19, 2019
1 parent b5b290e commit 4e782de9769a3cf6581ab85fffb4a5f77a445472
Showing with 4 additions and 4 deletions.
  1. +2 −2 build.gradle
  2. +2 −2 src/main/java/net/smoofyuniverse/mirage/mixin/world/MixinChunk.java
@@ -51,7 +51,7 @@ sourceCompatibility = 1.8
targetCompatibility = 1.8

minecraft {
version = '1.12.2-14.23.5.2825'
version = '1.12.2-14.23.5.2838'
mappings = 'snapshot_20180808'

runDir = 'run'
@@ -73,7 +73,7 @@ repositories {
}

dependencies {
compile 'org.spongepowered:spongecommon:1.12.2-7.1.6-SNAPSHOT:dev'
compile 'org.spongepowered:spongecommon:1.12.2-7.1.7-SNAPSHOT:dev'
}

jar {
@@ -170,13 +170,13 @@ public void bindContainer(int index) {
}

@SuppressWarnings("UnresolvedMixinReference")
@Redirect(method = "setBlockState(Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/state/IBlockState;Lnet/minecraft/block/state/IBlockState;Lorg/spongepowered/api/world/BlockChangeFlag;)Lnet/minecraft/block/state/IBlockState;", at = @At(value = "NEW", target = "net/minecraft/world/chunk/storage/ExtendedBlockStorage"), remap = false)
@Redirect(method = "bridge$setBlockState(Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/state/IBlockState;Lnet/minecraft/block/state/IBlockState;Lorg/spongepowered/api/world/BlockChangeFlag;)Lnet/minecraft/block/state/IBlockState;", at = @At(value = "NEW", target = "net/minecraft/world/chunk/storage/ExtendedBlockStorage"), remap = false)
public ExtendedBlockStorage onBlockChange_newStorage(int y, boolean storeSkylight) {
return createStorage(y >> 4, storeSkylight);
}

@SuppressWarnings("UnresolvedMixinReference")
@Redirect(method = "fill(Lnet/minecraft/world/chunk/ChunkPrimer;)V", at = @At(value = "NEW", target = "net/minecraft/world/chunk/storage/ExtendedBlockStorage"), remap = false)
@Redirect(method = "bridge$fill(Lnet/minecraft/world/chunk/ChunkPrimer;)V", at = @At(value = "NEW", target = "net/minecraft/world/chunk/storage/ExtendedBlockStorage"), remap = false)
public ExtendedBlockStorage onFill_newStorage(int y, boolean storeSkylight) {
return createStorage(y >> 4, storeSkylight);
}

0 comments on commit 4e782de

Please sign in to comment.
You can’t perform that action at this time.