Clean up a bunch of TODOs that are no longer relevant

This commit is contained in:
Electroblob77
2020-09-23 23:49:36 +01:00
parent ed9e9110e5
commit aac931f6b2
12 changed files with 5 additions and 15 deletions
@@ -95,8 +95,6 @@ public class Paralysis extends SpellRay {
// See WizardryClientEventHandler for prevention of players' movement under the effects of paralysis
// TODO: (Animated?) screen overlay effect for paralysed players in first-person
@SubscribeEvent
public static void onLivingUpdateEvent(LivingUpdateEvent event){
// Disables entities' AI when under the effects of paralysis and re-enables it on the last update of the effect
@@ -22,7 +22,6 @@ public class PocketWorkbench extends Spell {
@Override
public boolean cast(World world, EntityPlayer caster, EnumHand hand, int ticksInUse, SpellModifiers modifiers){
// TODO: Investigate possible item duplication bug with this spell. So far I have been unable to recreate it.
if(!world.isRemote){
caster.openGui(Wizardry.instance, WizardryGuiHandler.PORTABLE_CRAFTING, world, (int)caster.posX,
(int)caster.posY, (int)caster.posZ);
@@ -148,7 +148,7 @@ public class Possession extends SpellRay {
if(!shootSpell(world, origin, look, caster, ticksInUse, modifiers)) return false;
// if(casterSwingsArm(world, caster, hand, ticksInUse, modifiers)) caster.swingArm(hand);
this.playSound(world, caster, ticksInUse, -1, modifiers, "possess"); // TODO: There must be a better way...
this.playSound(world, caster, ticksInUse, -1, modifiers, "possess");
return true;
}
@@ -305,7 +305,7 @@ public abstract class Spell extends IForgeRegistryEntry.Impl<Spell> implements C
.map(s -> s.properties).toArray(SpellProperties[]::new)));
}else{
// On the client side, wipe the spell properties so the new ones can be set
// TESTME: Can we guarantee this happens before the packet arrives?
// Not sure if we can guarantee this happens before the packet arrives, but it hasn't caused any problems yet!
clearProperties();
}
}