Fix wither pet making sounds, fixed worldtime.

This commit is contained in:
libraryaddict 2015-10-21 04:22:31 +13:00
parent ddd674e371
commit 07f032a5d2
3 changed files with 14 additions and 12 deletions

View File

@ -107,10 +107,9 @@ public class DisguiseManager extends MiniPlugin implements IPacketHandler
PacketPlayOutEntityStatus.class, PacketPlayOutMapChunk.class, PacketPlayOutMapChunkBulk.class,
PacketPlayOutNamedEntitySpawn.class, PacketPlayOutPlayerInfo.class,
PacketPlayOutEntity.PacketPlayOutRelEntityMove.class, PacketPlayOutEntity.PacketPlayOutRelEntityMoveLook.class,
PacketPlayOutPlayerInfo.PlayerInfoData.class, PacketPlayOutSpawnEntity.class, PacketPlayOutEntityVelocity.class,
PacketPlayOutEntityDestroy.class, PacketPlayOutEntityTeleport.class, PacketPlayOutEntityMetadata.class,
PacketPlayOutSpawnEntityLiving.class, PacketPlayOutUpdateAttributes.class, PacketPlayOutEntityEquipment.class,
PacketPlayOutNamedSoundEffect.class);
PacketPlayOutSpawnEntity.class, PacketPlayOutEntityVelocity.class, PacketPlayOutEntityDestroy.class,
PacketPlayOutEntityTeleport.class, PacketPlayOutEntityMetadata.class, PacketPlayOutSpawnEntityLiving.class,
PacketPlayOutUpdateAttributes.class, PacketPlayOutEntityEquipment.class, PacketPlayOutNamedSoundEffect.class);
try
{

View File

@ -186,13 +186,15 @@ public class PetManager extends MiniClientPlugin<PetClient>
_disguiseManager.addFutureDisguise(witherDisguise);
pet = (Creature) location.getWorld().spawnEntity(location, EntityType.SILVERFISH);
_creatureModule.SetForce(false);
Entity silverfish = _creatureModule.SpawnEntity(location, EntityType.SILVERFISH);
UtilEnt.Vegetate(silverfish, true);
UtilEnt.silence(pet, true);
((LivingEntity) silverfish).addPotionEffect(new PotionEffect(PotionEffectType.INVISIBILITY, Integer.MAX_VALUE, 0));
pet.setPassenger(silverfish);
Creature silverfish = (Creature) _creatureModule.SpawnEntity(location, EntityType.SILVERFISH);
UtilEnt.Vegetate(silverfish, true);
UtilEnt.silence(silverfish, true);
((LivingEntity) silverfish).addPotionEffect(new PotionEffect(PotionEffectType.INVISIBILITY, Integer.MAX_VALUE, 0));
pet.setPassenger(silverfish);
_creatureModule.SetForce(false);
}
else
{

View File

@ -923,8 +923,9 @@ public class ArcadeManager extends MiniPlugin implements IRelation
player.setLevel(0);
player.setExp(0f);
player.setPlayerTime(player.getWorld().getTime(), false);
player.resetPlayerTime();
player.resetPlayerWeather();
((CraftPlayer) player).getHandle().spectating = false;
((CraftPlayer) player).getHandle().setGhost(false);
((CraftPlayer) player).getHandle().k = true;