Removed some old disabled code.
This commit is contained in:
parent
e04a897488
commit
5649939f8c
@ -187,66 +187,10 @@ public abstract class WinEffectGadget extends Gadget
|
||||
p.setAllowFlight(false);
|
||||
UtilPlayer.hideFromAll(p);
|
||||
}
|
||||
|
||||
// for(Entity e : loc.getWorld().getEntities())
|
||||
// {
|
||||
// if(!(e instanceof LivingEntity)) continue;
|
||||
// DisguiseBase d = Manager.getDisguiseManager().getDisguise((LivingEntity) e);
|
||||
// if(d == null) continue;
|
||||
// if(!(d instanceof DisguisePlayer)) continue;
|
||||
//// d.resendMetadata();
|
||||
// }
|
||||
|
||||
|
||||
}
|
||||
|
||||
public void buildWinnerRoom(Location loc)
|
||||
{
|
||||
/*
|
||||
Location floorCenter = loc.clone().add(0, -1, 0);
|
||||
Location floorA = floorCenter.clone().subtract(8, 0, 8);
|
||||
Location floorB = floorCenter.clone().add(7, 0, 7);
|
||||
|
||||
for(Block b : UtilBlock.getInBoundingBox(floorA, floorB, false))
|
||||
{
|
||||
Material mat = Material.STAINED_CLAY;
|
||||
if(((b.getX()-floorA.getBlockX())%4 == 3 || (b.getX()-floorA.getBlockX())%4 == 0) &&
|
||||
(((b.getZ()-floorA.getBlockZ())%4 == 3 || (b.getZ()-floorA.getBlockZ())%4 == 0)))
|
||||
{
|
||||
mat = Material.REDSTONE_LAMP_ON;
|
||||
b.getRelative(BlockFace.DOWN).setType(Material.REDSTONE_BLOCK);
|
||||
}
|
||||
b.setType(mat);
|
||||
}
|
||||
|
||||
Location wallB = floorB.clone().add(0, 8, 0);
|
||||
|
||||
for(Block b : UtilBlock.getInBoundingBox(floorA, wallB, false, true, true, false))
|
||||
{
|
||||
b.setTypeIdAndData(Material.STAINED_CLAY.getId(), (byte) (((b.getY()-floorCenter.getBlockY())%2 == 0)? 14 : 1), true);
|
||||
}
|
||||
|
||||
Location ceilA = floorA.clone().add(0, 8, 0);
|
||||
|
||||
for(Block b : UtilBlock.getInBoundingBox(ceilA, wallB, false))
|
||||
{
|
||||
b.setType(Material.LAPIS_BLOCK);
|
||||
}
|
||||
|
||||
int cxMin = floorB.getChunk().getX();
|
||||
int cxMax = floorA.getChunk().getX();
|
||||
int czMin = floorB.getChunk().getZ();
|
||||
int czMax = floorA.getChunk().getZ();
|
||||
for(int x = cxMin; x <= cxMax; x++)
|
||||
{
|
||||
for(int z = czMin; z <= czMax; z++)
|
||||
{
|
||||
((CraftChunk)loc.getWorld().getChunkAt(x, z)).getHandle().initLighting();
|
||||
}
|
||||
}
|
||||
// ((CraftChunk)loc.getChunk()).getHandle().initLighting();
|
||||
*/
|
||||
|
||||
pasteScematic(_schematicName);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user