fixed not saving boats and similar entities
This commit is contained in:
parent
aadba7fdc5
commit
bb7cdf33a6
|
|
@ -190,11 +190,19 @@ public class ItemCarryonEntity extends Item {
|
||||||
{
|
{
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
initGoals.invoke(entity);
|
if (entity instanceof MobEntity)
|
||||||
|
initGoals.invoke(entity);
|
||||||
entity.deserializeNBT(e);
|
entity.deserializeNBT(e);
|
||||||
}
|
}
|
||||||
catch (Exception e1)
|
catch (Exception e1)
|
||||||
{
|
{
|
||||||
|
try
|
||||||
|
{
|
||||||
|
entity.deserializeNBT(e);
|
||||||
|
}
|
||||||
|
catch (Exception e2)
|
||||||
|
{
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user