Skip to content
This repository was archived by the owner on Jan 29, 2021. It is now read-only.

Commit 2da07cc

Browse files
authored
Version r1.1.1 fixes issue with "Increase NBT tag"
1 parent c529530 commit 2da07cc

File tree

3 files changed

+7
-6
lines changed

3 files changed

+7
-6
lines changed

src/forge-1.14.4/procedures/increase_block_nbt_tag.java.ftl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
if (!world.isRemote) {
1+
if (!world.getWorld().isRemote) {
22
BlockPos _bp = new BlockPos((int) ${input$x}, (int) ${input$y}, (int) ${input$z});
33
TileEntity _tileEntity = world.getTileEntity(_bp);
44
BlockState _bs = world.getBlockState(_bp);
@@ -11,5 +11,5 @@ if (!world.isRemote) {
1111
return -1;
1212
}
1313
}.getValue(new BlockPos((int) ${input$x}, (int) ${input$y}, (int) ${input$z}), ${input$tag})) + ${input$increase}));
14-
world.notifyBlockUpdate(_bp, _bs, _bs, 3);
14+
world.getWorld().notifyBlockUpdate(_bp, _bs, _bs, 3);
1515
}

src/forge-1.15.2/procedures/increase_block_nbt_tag.java.ftl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
if (!world.isRemote) {
1+
if (!world.getWorld().isRemote) {
22
BlockPos _bp = new BlockPos((int) ${input$x}, (int) ${input$y}, (int) ${input$z});
33
TileEntity _tileEntity = world.getTileEntity(_bp);
44
BlockState _bs = world.getBlockState(_bp);
@@ -11,5 +11,5 @@ if (!world.isRemote) {
1111
return -1;
1212
}
1313
}.getValue(new BlockPos((int) ${input$x}, (int) ${input$y}, (int) ${input$z}), ${input$tag})) + ${input$increase}));
14-
world.notifyBlockUpdate(_bp, _bs, _bs, 3);
14+
world.getWorld().notifyBlockUpdate(_bp, _bs, _bs, 3);
1515
}

src/plugin.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
{
22
"id": "ep-plugin",
3-
"minversion": 202000318613,
3+
"minversion": 202000431617,
4+
"maxversion": 202000432115,
45
"info": {
56
"name": "Extra Procedures Plugin",
67
"description": "A plugin that adds extra procedures and global triggers.",
7-
"version": "r1.1",
8+
"version": "r1.1.1",
89
"authors": "Max094_Reikeb & CrispyChips"
910
}
1011
}

0 commit comments

Comments
 (0)