Rework slow time to use an NBT tag to unblock entity updates when not in a slow time zone, fixes #336 (and related issues with teleporting)

It also simplifies the code and removes the end slow time packet entirely
This commit is contained in:
Electroblob77
2020-01-28 13:20:32 +00:00
parent e4bf09f15a
commit e54aee332d
6 changed files with 40 additions and 73 deletions
@@ -9,6 +9,7 @@ import electroblob.wizardry.data.WizardData;
import electroblob.wizardry.item.ISpellCastingItem;
import electroblob.wizardry.item.ItemArtefact;
import electroblob.wizardry.item.ItemSpectralBow;
import electroblob.wizardry.potion.PotionSlowTime;
import electroblob.wizardry.registry.Spells;
import electroblob.wizardry.registry.WizardryItems;
import electroblob.wizardry.registry.WizardryPotions;
@@ -153,6 +154,7 @@ public final class WizardryClientEventHandler {
}
SpellEmitterData.update(world);
PotionSlowTime.cleanUpEntities(world);
}
}