mirror of
https://github.com/GTNewHorizons/TinkersConstruct.git
synced 2026-11-19 03:49:29 +00:00
Add safeguard against drops not being the same as capturedrops. Moved capturing of drops out of armor and knapsack stuff.
This commit is contained in:
1 parent
03755be47d
commit
312fd47360
3 files changed
+14
-4
No files matched your search
@@ -261,8 +261,20 @@ public class TPlayerHandler
|
||||
else
|
||||
stats.hunger = evt.entityPlayer.getFoodStats().getFoodLevel();
|
||||
|
||||
if (evt.entityPlayer.capturedDrops != evt.drops)
|
||||
{
|
||||
evt.entityPlayer.capturedDrops.clear();
|
||||
}
|
||||
|
||||
evt.entityPlayer.captureDrops = true;
|
||||
stats.armor.dropItems();
|
||||
stats.knapsack.dropItems();
|
||||
evt.entityPlayer.captureDrops = false;
|
||||
|
||||
if (evt.entityPlayer.capturedDrops != evt.drops)
|
||||
{
|
||||
evt.drops.addAll(evt.entityPlayer.capturedDrops);
|
||||
}
|
||||
|
||||
playerStats.put(evt.entityPlayer.getPersistentID(), stats);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user