fixed not saving boats and similar entities

This commit is contained in:
Tschipp 2021-12-25 00:17:06 +01:00
parent aadba7fdc5
commit bb7cdf33a6

View File

@ -190,11 +190,19 @@ public class ItemCarryonEntity extends Item {
{
try
{
initGoals.invoke(entity);
if (entity instanceof MobEntity)
initGoals.invoke(entity);
entity.deserializeNBT(e);
}
catch (Exception e1)
{
try
{
entity.deserializeNBT(e);
}
catch (Exception e2)
{
}
}
}