mirror of
https://github.com/Thorfusion/Mekanism-Community-Edition.git
synced 2026-11-25 22:34:21 +00:00
Of course, the issue isn't on Minecraft's end, it has to do with Coord4D hashing. Coord4D no longer extends BlockPos to prevent hash issues
This commit is contained in:
1 parent
c6f3c162f9
commit
ddfe83c495
70 files changed
+458
-1032
No files matched your search
@@ -21,20 +21,20 @@ public final class MinerUtils
|
||||
IBlockState state = obj.getBlockState(world);
|
||||
Block block = state.getBlock();
|
||||
|
||||
if(block == null || block.isAir(world, obj))
|
||||
if(block == null || block.isAir(world, obj.getPos()))
|
||||
{
|
||||
return new ArrayList<ItemStack>();
|
||||
}
|
||||
|
||||
if(!silk)
|
||||
{
|
||||
return block.getDrops(world, obj, state, 0);
|
||||
return block.getDrops(world, obj.getPos(), state, 0);
|
||||
}
|
||||
else {
|
||||
List<ItemStack> ret = new ArrayList<ItemStack>();
|
||||
ret.add(new ItemStack(block, 1, block.getMetaFromState(state)));
|
||||
|
||||
if(specialSilkIDs.contains(block) || (block.getDrops(world, obj, state, 0) != null && block.getDrops(world, obj, state, 0).size() > 0))
|
||||
if(specialSilkIDs.contains(block) || (block.getDrops(world, obj.getPos(), state, 0) != null && block.getDrops(world, obj.getPos(), state, 0).size() > 0))
|
||||
{
|
||||
return ret;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user