Skip to content

Commit

Permalink
Forgot to include some stuff in the last commit
Browse files Browse the repository at this point in the history
  • Loading branch information
Pedro270707 committed Jan 23, 2024
1 parent e5f7a15 commit f48efd8
Show file tree
Hide file tree
Showing 11 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,6 @@ loader_version=0.14.19-babric.3-bta
halplibe_version=3.1.4

# Mod
mod_version=1.2.12
mod_version=1.2.13
mod_group=net.pedroricardo
mod_name=commander
2 changes: 1 addition & 1 deletion output/production/commander-bta.main/fabric.mod.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"schemaVersion": 1,
"id": "commander",
"version": "1.2.11",
"version": "1.2.12",

"name": "Commander",
"description": "This mod overhauls the command system.",
Expand Down
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -177,9 +177,7 @@ public static int clone(CommanderCommandSource source, WorldAndPosition start, W
if (destination.getWorld().getBlockId(offsetDestinationX, offsetDestinationY, offsetDestinationZ) != entry.getValue().getBlockId() || destination.getWorld().getBlockMetadata(offsetDestinationX, offsetDestinationY, offsetDestinationZ) != entry.getValue().getMetadata()) ++clonedBlocks;
destination.getWorld().setBlockWithNotify(offsetDestinationX, offsetDestinationY, offsetDestinationZ, entry.getValue().getBlockId());
destination.getWorld().setBlockMetadataWithNotify(offsetDestinationX, offsetDestinationY, offsetDestinationZ, entry.getValue().getMetadata());
if (entry.getValue().getTileEntity() != null) {
CommanderHelper.setTileEntity(destination.getWorld(), offsetDestinationX, offsetDestinationY, offsetDestinationZ, entry.getValue().getTileEntity());
}
CommanderHelper.setTileEntity(destination.getWorld(), offsetDestinationX, offsetDestinationY, offsetDestinationZ, entry.getValue().getTileEntity());
}
}
destination.getWorld().editingBlocks = false;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,7 @@ public static int fillReplace(CommanderCommandSource source, World world, Intege
if (filter == null || (world.getBlockId(x, y, z) == filter.getBlockId() && world.getBlockMetadata(x, y, z) == filter.getMetadata() && (!filter.getTag().getValue().isEmpty() || CommanderHelper.blockEntitiesAreEqual(CommanderHelper.tagFrom(world.getBlockTileEntity(x, y, z)), filter.getTag())))) {
world.setBlockWithNotify(x, y, z, block.getBlockId());
world.setBlockMetadataWithNotify(x, y, z, block.getMetadata());
CommanderHelper.setTileEntity(world, x, y, z, block.getTag());
}
}
}
Expand Down Expand Up @@ -156,6 +157,7 @@ public static int fillHollow(CommanderCommandSource source, World world, Integer
}
world.setBlockWithNotify(x, y, z, isOutline ? block.getBlockId() : 0);
world.setBlockMetadataWithNotify(x, y, z, isOutline ? block.getMetadata() : 0);
CommanderHelper.setTileEntity(world, x, y, z, block.getTag());
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/fabric.mod.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"schemaVersion": 1,
"id": "commander",
"version": "1.2.12",
"version": "1.2.13",

"name": "Commander",
"description": "This mod overhauls the command system.",
Expand Down

0 comments on commit f48efd8

Please sign in to comment.