Skip to content

Commit

Permalink
Fix #61 for 1.16.5: don't drop duplicate shulker boxes.
Browse files Browse the repository at this point in the history
  • Loading branch information
noobanidus committed Dec 12, 2021
1 parent 6f9a099 commit cb6507c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ top_version=1.16:1.16-3.1.4-22
jade_version=3439522
jei_version=1.16.5:7.7.1.121
group=noobanidus.mods.lootr
version=0.0.9.29
version=0.0.9.30

mod_name=Lootr
mod_author=Noobanidus
Expand Down Expand Up @@ -39,4 +39,4 @@ curse_versions=1.16.4, 1.16.5
# Are we running on Jenkins?
jenkins=true

git_previous_commit=6c5d8a6141b3d841d4c0de350da469b7c84881f0
git_previous_commit=6f9a099cdb237ce45472ab151dd47ebc94f7b824
Original file line number Diff line number Diff line change
Expand Up @@ -82,14 +82,14 @@ public ActionResultType use(BlockState pState, World pLevel, BlockPos pPos, Play

@Override
public void playerWillDestroy(World pLevel, BlockPos pPos, BlockState pState, PlayerEntity pPlayer) {
TileEntity tileentity = pLevel.getBlockEntity(pPos);
/* TileEntity tileentity = pLevel.getBlockEntity(pPos);
if (tileentity instanceof SpecialLootShulkerTile) {
if (!pLevel.isClientSide) {
ItemEntity itementity = new ItemEntity(pLevel, pPos.getX() + 0.5, pPos.getY() + 0.5, pPos.getZ() + 0.5, new ItemStack(Items.SHULKER_BOX));
itementity.setDefaultPickUpDelay();
pLevel.addFreshEntity(itementity);
}
}
}*/

pLevel.levelEvent(pPlayer, 2001, pPos, getId(pState));
if (this.is(BlockTags.GUARDED_BY_PIGLINS)) {
Expand Down

0 comments on commit cb6507c

Please sign in to comment.