Merge branch 'master' of ssh://dev1.mineplex.com:7999/min/mineplex
This commit is contained in:
commit
ecc40bda47
Binary file not shown.
@ -3,6 +3,7 @@ package net.minecraft.server.v1_7_R2;
|
|||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
import java.util.Iterator;
|
import java.util.Iterator;
|
||||||
|
|
||||||
|
|
||||||
// CraftBukkit start
|
// CraftBukkit start
|
||||||
import org.bukkit.craftbukkit.v1_7_R2.event.CraftEventFactory;
|
import org.bukkit.craftbukkit.v1_7_R2.event.CraftEventFactory;
|
||||||
import org.bukkit.event.entity.EntityDamageEvent;
|
import org.bukkit.event.entity.EntityDamageEvent;
|
||||||
@ -62,6 +63,14 @@ public class EntityFallingBlock extends Entity {
|
|||||||
return !this.dead && !spectating;
|
return !this.dead && !spectating;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public boolean damageEntity(DamageSource damagesource, float f)
|
||||||
|
{
|
||||||
|
CraftEventFactory.handleEntityDamageEvent(this, damagesource, f);
|
||||||
|
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
public void h() {
|
public void h() {
|
||||||
if (this.id.getMaterial() == Material.AIR) {
|
if (this.id.getMaterial() == Material.AIR) {
|
||||||
this.die();
|
this.die();
|
||||||
|
@ -900,6 +900,7 @@ public abstract class EntityHuman extends EntityLiving implements ICommandListen
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (f > 0.0F || f1 > 0.0F) {
|
if (f > 0.0F || f1 > 0.0F) {
|
||||||
|
|
||||||
boolean flag = this.fallDistance > 0.0F && !this.onGround && !this.h_() && !this.L() && !this.hasEffect(MobEffectList.BLINDNESS) && this.vehicle == null && entity instanceof EntityLiving;
|
boolean flag = this.fallDistance > 0.0F && !this.onGround && !this.h_() && !this.L() && !this.hasEffect(MobEffectList.BLINDNESS) && this.vehicle == null && entity instanceof EntityLiving;
|
||||||
|
|
||||||
if (flag && f > 0.0F) {
|
if (flag && f > 0.0F) {
|
||||||
|
@ -514,7 +514,7 @@ public class ArcadeManager extends MiniPlugin implements IRelation
|
|||||||
GetDisguise().undisguise(player);
|
GetDisguise().undisguise(player);
|
||||||
}
|
}
|
||||||
|
|
||||||
public ArrayList<String> LoadFiles(String gameName)
|
public ArrayList<String> LoadFiles(String gameName)
|
||||||
{
|
{
|
||||||
File folder = new File(".." + File.separatorChar + ".." + File.separatorChar + "update" + File.separatorChar + "maps" + File.separatorChar + gameName);
|
File folder = new File(".." + File.separatorChar + ".." + File.separatorChar + "update" + File.separatorChar + "maps" + File.separatorChar + gameName);
|
||||||
if (!folder.exists()) folder.mkdirs();
|
if (!folder.exists()) folder.mkdirs();
|
||||||
|
@ -52,8 +52,8 @@ public abstract class GravityObject
|
|||||||
Base.setHealth(60);
|
Base.setHealth(60);
|
||||||
|
|
||||||
Bat = new DisguiseBat(Base);
|
Bat = new DisguiseBat(Base);
|
||||||
Bat.setSitting(false);
|
Bat.setSitting(true);
|
||||||
Host.Manager.GetDisguise().disguise(Bat);
|
//Host.Manager.GetDisguise().disguise(Bat);
|
||||||
|
|
||||||
UtilEnt.Vegetate(Base, true);
|
UtilEnt.Vegetate(Base, true);
|
||||||
UtilEnt.ghost(Base, true, true);
|
UtilEnt.ghost(Base, true, true);
|
||||||
@ -212,6 +212,6 @@ public abstract class GravityObject
|
|||||||
public void SetMovingBat(boolean moving)
|
public void SetMovingBat(boolean moving)
|
||||||
{
|
{
|
||||||
Bat.setSitting(!moving);
|
Bat.setSitting(!moving);
|
||||||
Host.Manager.GetDisguise().updateDisguise(Bat);
|
//Host.Manager.GetDisguise().updateDisguise(Bat);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -104,12 +104,6 @@ public class GravityPlayer extends GravityObject
|
|||||||
|
|
||||||
public void KickOff(Player player)
|
public void KickOff(Player player)
|
||||||
{
|
{
|
||||||
if (!Ent.equals(player))
|
|
||||||
return;
|
|
||||||
|
|
||||||
if (!Bat.isSitting() && !NearBlock())
|
|
||||||
return;
|
|
||||||
|
|
||||||
GrabDelay = System.currentTimeMillis();
|
GrabDelay = System.currentTimeMillis();
|
||||||
|
|
||||||
AddVelocity(player.getLocation().getDirection().multiply(0.5), 0.5);
|
AddVelocity(player.getLocation().getDirection().multiply(0.5), 0.5);
|
||||||
|
@ -456,6 +456,7 @@ public class HideSeek extends TeamGame
|
|||||||
@EventHandler
|
@EventHandler
|
||||||
public void FallingBlockDamage(EntityDamageEvent event)
|
public void FallingBlockDamage(EntityDamageEvent event)
|
||||||
{
|
{
|
||||||
|
System.out.println("Damage event.");
|
||||||
if (!(event instanceof EntityDamageByEntityEvent))
|
if (!(event instanceof EntityDamageByEntityEvent))
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user