Skip to content

Commit

Permalink
Inventar
Browse files Browse the repository at this point in the history
Spawner wird ins Inventar gelegt statt gedroppt
  • Loading branch information
PegasusExe committed May 29, 2016
1 parent 2fe2849 commit cee15c2
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -132,8 +132,9 @@ public void onBlockBreak(BlockBreakEvent event) {
}
if (randomNumber < dropChance) {
// Drop spawner
world.dropItemNaturally(block.getLocation(),
su.newSpawnerItem(entityID, su.getCustomSpawnerName(su.eid2MobID.get(entityID)), 1, false));
//world.dropItemNaturally(block.getLocation(),
// su.newSpawnerItem(entityID, su.getCustomSpawnerName(su.eid2MobID.get(entityID)), 1, false));
player.getInventory().addItem(new ItemStack(su.newSpawnerItem(entityID, su.getCustomSpawnerName(su.eid2MobID.get(entityID)), 1, false)));
}
return;
}
Expand Down

0 comments on commit cee15c2

Please sign in to comment.