Skip to content

Commit 6cf8e78

Browse files
committed
Merge branch 'master-1.8' into master-1.9
Conflicts: build.properties
2 parents 3a7f370 + 1a309b3 commit 6cf8e78

4 files changed

Lines changed: 9 additions & 4 deletions

File tree

build.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
mod_version=0.5.2
1+
mod_version=0.5.3
22
minecraft_version=1.9
33
forge_version=12.16.0.1767-1.9
44
mcp_mappings_version=snapshot_20160312
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
Make sure to backup your world before updating!
2+
3+
Fixes:
4+
* Move the place at which onPreBlockDestroyed is called.
5+
* Add safety checks for avoiding null oredict entries

src/main/java/org/cyclops/cyclopscore/config/configurable/ConfigurableBlockContainer.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -192,9 +192,9 @@ public void breakBlock(World world, BlockPos blockPos, IBlockState blockState) {
192192
}
193193

194194
@Override
195-
public void onBlockHarvested(World worldIn, BlockPos pos, IBlockState state, EntityPlayer player) {
196-
onPreBlockDestroyed(worldIn, pos, player);
197-
super.onBlockHarvested(worldIn, pos, state, player);
195+
public boolean removedByPlayer(World world, BlockPos pos, EntityPlayer player, boolean willHarvest) {
196+
onPreBlockDestroyed(world, pos, player);
197+
return super.removedByPlayer(world, pos, player, willHarvest);
198198
}
199199

200200
@Override

0 commit comments

Comments
 (0)