3
0
Mirror von https://github.com/PaperMC/Paper.git synchronisiert 2024-12-18 12:30:06 +01:00

Fixed blockcache being inaccurate

Dieser Commit ist enthalten in:
Dinnerbone 2011-01-20 00:16:57 +00:00
Ursprung 0284663aee
Commit 46e1b54a74
25 geänderte Dateien mit 346 neuen und 339 gelöschten Zeilen

Datei anzeigen

@ -125,6 +125,13 @@ public class WorldServer extends World {
return result; return result;
} }
@Override
public boolean a(int i1, int j1, int k1, int l1, int i2) {
boolean result = super.a(i1, j1, k1, l1, i2);
if ((result) && (world != null)) world.updateBlock(i1, j1, k1);
return result;
}
@Override @Override
public void a(int i1, int j1, int k1, TileEntity tileentity) { public void a(int i1, int j1, int k1, TileEntity tileentity) {
super.a(i1, j1, k1, tileentity); super.a(i1, j1, k1, tileentity);

Datei anzeigen

@ -1,15 +1,15 @@
package org.bukkit.craftbukkit.entity; package org.bukkit.craftbukkit.entity;
import net.minecraft.server.EntityAnimals; import net.minecraft.server.EntityAnimals;
import org.bukkit.craftbukkit.CraftServer; import org.bukkit.craftbukkit.CraftServer;
import org.bukkit.entity.Animals; import org.bukkit.entity.Animals;
public class CraftAnimals extends CraftCreature implements Animals{ public class CraftAnimals extends CraftCreature implements Animals{
public CraftAnimals(CraftServer server, EntityAnimals entity) { public CraftAnimals(CraftServer server, EntityAnimals entity) {
super(server, entity); super(server, entity);
} }
} }

Datei anzeigen

@ -1,13 +1,13 @@
package org.bukkit.craftbukkit.entity; package org.bukkit.craftbukkit.entity;
import net.minecraft.server.EntityChicken; import net.minecraft.server.EntityChicken;
import org.bukkit.craftbukkit.CraftServer; import org.bukkit.craftbukkit.CraftServer;
import org.bukkit.entity.Chicken; import org.bukkit.entity.Chicken;
public class CraftChicken extends CraftAnimals implements Chicken{ public class CraftChicken extends CraftAnimals implements Chicken{
public CraftChicken(CraftServer server, EntityChicken entity) { public CraftChicken(CraftServer server, EntityChicken entity) {
super(server, entity); super(server, entity);
} }
} }

Datei anzeigen

@ -1,13 +1,13 @@
package org.bukkit.craftbukkit.entity; package org.bukkit.craftbukkit.entity;
import net.minecraft.server.EntityCow; import net.minecraft.server.EntityCow;
import org.bukkit.craftbukkit.CraftServer; import org.bukkit.craftbukkit.CraftServer;
import org.bukkit.entity.Cow; import org.bukkit.entity.Cow;
public class CraftCow extends CraftAnimals implements Cow { public class CraftCow extends CraftAnimals implements Cow {
public CraftCow(CraftServer server, EntityCow entity) { public CraftCow(CraftServer server, EntityCow entity) {
super(server, entity); super(server, entity);
} }
} }

Datei anzeigen

@ -1,13 +1,13 @@
package org.bukkit.craftbukkit.entity; package org.bukkit.craftbukkit.entity;
import net.minecraft.server.EntityCreature; import net.minecraft.server.EntityCreature;
import org.bukkit.craftbukkit.CraftServer; import org.bukkit.craftbukkit.CraftServer;
import org.bukkit.entity.Creature; import org.bukkit.entity.Creature;
public class CraftCreature extends CraftLivingEntity implements Creature{ public class CraftCreature extends CraftLivingEntity implements Creature{
public CraftCreature(CraftServer server, EntityCreature entity) { public CraftCreature(CraftServer server, EntityCreature entity) {
super(server, entity); super(server, entity);
} }
} }

Datei anzeigen

@ -1,13 +1,13 @@
package org.bukkit.craftbukkit.entity; package org.bukkit.craftbukkit.entity;
import net.minecraft.server.EntityCreeper; import net.minecraft.server.EntityCreeper;
import org.bukkit.craftbukkit.CraftServer; import org.bukkit.craftbukkit.CraftServer;
import org.bukkit.entity.Creeper; import org.bukkit.entity.Creeper;
public class CraftCreeper extends CraftMonster implements Creeper { public class CraftCreeper extends CraftMonster implements Creeper {
public CraftCreeper(CraftServer server, EntityCreeper entity) { public CraftCreeper(CraftServer server, EntityCreeper entity) {
super(server, entity); super(server, entity);
} }
} }

Datei anzeigen

@ -1,15 +1,15 @@
package org.bukkit.craftbukkit.entity; package org.bukkit.craftbukkit.entity;
import net.minecraft.server.EntityFallingSand; import net.minecraft.server.EntityFallingSand;
import org.bukkit.craftbukkit.CraftServer; import org.bukkit.craftbukkit.CraftServer;
import org.bukkit.craftbukkit.entity.CraftEntity; import org.bukkit.craftbukkit.entity.CraftEntity;
import org.bukkit.entity.FallingSand; import org.bukkit.entity.FallingSand;
public class CraftFallingSand extends CraftEntity implements FallingSand { public class CraftFallingSand extends CraftEntity implements FallingSand {
public CraftFallingSand(CraftServer server, EntityFallingSand entity) { public CraftFallingSand(CraftServer server, EntityFallingSand entity) {
super(server, entity); super(server, entity);
} }
} }

Datei anzeigen

@ -1,17 +1,17 @@
package org.bukkit.craftbukkit.entity; package org.bukkit.craftbukkit.entity;
import net.minecraft.server.EntityFireball; import net.minecraft.server.EntityFireball;
import org.bukkit.craftbukkit.CraftServer; import org.bukkit.craftbukkit.CraftServer;
import org.bukkit.entity.Fireball; import org.bukkit.entity.Fireball;
/** /**
* A Fireball. * A Fireball.
* *
* @author Cogito * @author Cogito
*/ */
public class CraftFireball extends CraftEntity implements Fireball { public class CraftFireball extends CraftEntity implements Fireball {
public CraftFireball(CraftServer server, EntityFireball entity) { public CraftFireball(CraftServer server, EntityFireball entity) {
super(server, entity); super(server, entity);
} }
} }

Datei anzeigen

@ -1,17 +1,17 @@
package org.bukkit.craftbukkit.entity; package org.bukkit.craftbukkit.entity;
import net.minecraft.server.EntityFish; import net.minecraft.server.EntityFish;
import org.bukkit.craftbukkit.CraftServer; import org.bukkit.craftbukkit.CraftServer;
import org.bukkit.entity.Fish; import org.bukkit.entity.Fish;
/** /**
* A Fish. * A Fish.
* *
* @author Cogito * @author Cogito
*/ */
public class CraftFish extends CraftEntity implements Fish { public class CraftFish extends CraftEntity implements Fish {
public CraftFish(CraftServer server, EntityFish entity) { public CraftFish(CraftServer server, EntityFish entity) {
super(server, entity); super(server, entity);
} }
} }

Datei anzeigen

@ -1,13 +1,13 @@
package org.bukkit.craftbukkit.entity; package org.bukkit.craftbukkit.entity;
import net.minecraft.server.EntityFlying; import net.minecraft.server.EntityFlying;
import org.bukkit.craftbukkit.CraftServer; import org.bukkit.craftbukkit.CraftServer;
import org.bukkit.entity.Flying; import org.bukkit.entity.Flying;
public class CraftFlying extends CraftLivingEntity implements Flying { public class CraftFlying extends CraftLivingEntity implements Flying {
public CraftFlying(CraftServer server, EntityFlying entity) { public CraftFlying(CraftServer server, EntityFlying entity) {
super(server, entity); super(server, entity);
} }
} }

Datei anzeigen

@ -1,13 +1,13 @@
package org.bukkit.craftbukkit.entity; package org.bukkit.craftbukkit.entity;
import net.minecraft.server.EntityGhast; import net.minecraft.server.EntityGhast;
import org.bukkit.craftbukkit.CraftServer; import org.bukkit.craftbukkit.CraftServer;
import org.bukkit.entity.Ghast; import org.bukkit.entity.Ghast;
public class CraftGhast extends CraftFlying implements Ghast { public class CraftGhast extends CraftFlying implements Ghast {
public CraftGhast(CraftServer server, EntityGhast entity) { public CraftGhast(CraftServer server, EntityGhast entity) {
super(server, entity); super(server, entity);
} }
} }

Datei anzeigen

@ -1,14 +1,14 @@
package org.bukkit.craftbukkit.entity; package org.bukkit.craftbukkit.entity;
import net.minecraft.server.EntityZombieSimple; import net.minecraft.server.EntityZombieSimple;
import org.bukkit.craftbukkit.CraftServer; import org.bukkit.craftbukkit.CraftServer;
import org.bukkit.entity.Giant; import org.bukkit.entity.Giant;
public class CraftGiant extends CraftMonster implements Giant { public class CraftGiant extends CraftMonster implements Giant {
public CraftGiant(CraftServer server, EntityZombieSimple entity) { public CraftGiant(CraftServer server, EntityZombieSimple entity) {
super(server, entity); super(server, entity);
} }
} }

Datei anzeigen

@ -1,14 +1,14 @@
package org.bukkit.craftbukkit.entity; package org.bukkit.craftbukkit.entity;
import net.minecraft.server.EntityItem; import net.minecraft.server.EntityItem;
import org.bukkit.craftbukkit.CraftServer; import org.bukkit.craftbukkit.CraftServer;
import org.bukkit.entity.Item; import org.bukkit.entity.Item;
public class CraftItem extends CraftEntity implements Item { public class CraftItem extends CraftEntity implements Item {
public CraftItem(CraftServer server, EntityItem entity) { public CraftItem(CraftServer server, EntityItem entity) {
super(server, entity); super(server, entity);
} }
} }

Datei anzeigen

@ -1,14 +1,14 @@
package org.bukkit.craftbukkit.entity; package org.bukkit.craftbukkit.entity;
import net.minecraft.server.EntityMobs; import net.minecraft.server.EntityMobs;
import org.bukkit.craftbukkit.CraftServer; import org.bukkit.craftbukkit.CraftServer;
import org.bukkit.entity.Monster; import org.bukkit.entity.Monster;
public class CraftMonster extends CraftCreature implements Monster { public class CraftMonster extends CraftCreature implements Monster {
public CraftMonster(CraftServer server, EntityMobs entity) { public CraftMonster(CraftServer server, EntityMobs entity) {
super(server, entity); super(server, entity);
} }
} }

Datei anzeigen

@ -1,14 +1,14 @@
package org.bukkit.craftbukkit.entity; package org.bukkit.craftbukkit.entity;
import net.minecraft.server.EntityPainting; import net.minecraft.server.EntityPainting;
import org.bukkit.craftbukkit.CraftServer; import org.bukkit.craftbukkit.CraftServer;
import org.bukkit.entity.Painting; import org.bukkit.entity.Painting;
public class CraftPainting extends CraftEntity implements Painting { public class CraftPainting extends CraftEntity implements Painting {
public CraftPainting(CraftServer server, EntityPainting entity) { public CraftPainting(CraftServer server, EntityPainting entity) {
super(server, entity); super(server, entity);
} }
} }

Datei anzeigen

@ -1,15 +1,15 @@
package org.bukkit.craftbukkit.entity; package org.bukkit.craftbukkit.entity;
import net.minecraft.server.EntityPig; import net.minecraft.server.EntityPig;
import org.bukkit.craftbukkit.CraftServer; import org.bukkit.craftbukkit.CraftServer;
import org.bukkit.craftbukkit.entity.CraftAnimals; import org.bukkit.craftbukkit.entity.CraftAnimals;
import org.bukkit.entity.Pig; import org.bukkit.entity.Pig;
public class CraftPig extends CraftAnimals implements Pig { public class CraftPig extends CraftAnimals implements Pig {
public CraftPig(CraftServer server, EntityPig entity) { public CraftPig(CraftServer server, EntityPig entity) {
super(server, entity); super(server, entity);
} }
} }

Datei anzeigen

@ -1,14 +1,14 @@
package org.bukkit.craftbukkit.entity; package org.bukkit.craftbukkit.entity;
import net.minecraft.server.EntityPigZombie; import net.minecraft.server.EntityPigZombie;
import org.bukkit.craftbukkit.CraftServer; import org.bukkit.craftbukkit.CraftServer;
import org.bukkit.entity.PigZombie; import org.bukkit.entity.PigZombie;
public class CraftPigZombie extends CraftZombie implements PigZombie { public class CraftPigZombie extends CraftZombie implements PigZombie {
public CraftPigZombie(CraftServer server, EntityPigZombie entity) { public CraftPigZombie(CraftServer server, EntityPigZombie entity) {
super(server, entity); super(server, entity);
} }
} }

Datei anzeigen

@ -1,14 +1,14 @@
package org.bukkit.craftbukkit.entity; package org.bukkit.craftbukkit.entity;
import net.minecraft.server.EntitySheep; import net.minecraft.server.EntitySheep;
import org.bukkit.craftbukkit.CraftServer; import org.bukkit.craftbukkit.CraftServer;
import org.bukkit.entity.Sheep; import org.bukkit.entity.Sheep;
public class CraftSheep extends CraftAnimals implements Sheep { public class CraftSheep extends CraftAnimals implements Sheep {
public CraftSheep(CraftServer server, EntitySheep entity) { public CraftSheep(CraftServer server, EntitySheep entity) {
super(server, entity); super(server, entity);
} }
} }

Datei anzeigen

@ -1,14 +1,14 @@
package org.bukkit.craftbukkit.entity; package org.bukkit.craftbukkit.entity;
import net.minecraft.server.EntitySkeleton; import net.minecraft.server.EntitySkeleton;
import org.bukkit.craftbukkit.CraftServer; import org.bukkit.craftbukkit.CraftServer;
import org.bukkit.entity.Skeleton; import org.bukkit.entity.Skeleton;
public class CraftSkeleton extends CraftMonster implements Skeleton { public class CraftSkeleton extends CraftMonster implements Skeleton {
public CraftSkeleton(CraftServer server, EntitySkeleton entity) { public CraftSkeleton(CraftServer server, EntitySkeleton entity) {
super(server, entity); super(server, entity);
} }
} }

Datei anzeigen

@ -1,14 +1,14 @@
package org.bukkit.craftbukkit.entity; package org.bukkit.craftbukkit.entity;
import net.minecraft.server.EntitySlime; import net.minecraft.server.EntitySlime;
import org.bukkit.craftbukkit.CraftServer; import org.bukkit.craftbukkit.CraftServer;
import org.bukkit.entity.Slime; import org.bukkit.entity.Slime;
public class CraftSlime extends CraftLivingEntity implements Slime { public class CraftSlime extends CraftLivingEntity implements Slime {
public CraftSlime(CraftServer server, EntitySlime entity) { public CraftSlime(CraftServer server, EntitySlime entity) {
super(server, entity); super(server, entity);
} }
} }

Datei anzeigen

@ -1,14 +1,14 @@
package org.bukkit.craftbukkit.entity; package org.bukkit.craftbukkit.entity;
import net.minecraft.server.EntitySpider; import net.minecraft.server.EntitySpider;
import org.bukkit.craftbukkit.CraftServer; import org.bukkit.craftbukkit.CraftServer;
import org.bukkit.entity.Spider; import org.bukkit.entity.Spider;
public class CraftSpider extends CraftMonster implements Spider { public class CraftSpider extends CraftMonster implements Spider {
public CraftSpider(CraftServer server, EntitySpider entity) { public CraftSpider(CraftServer server, EntitySpider entity) {
super(server, entity); super(server, entity);
} }
} }

Datei anzeigen

@ -1,14 +1,14 @@
package org.bukkit.craftbukkit.entity; package org.bukkit.craftbukkit.entity;
import net.minecraft.server.EntitySquid; import net.minecraft.server.EntitySquid;
import org.bukkit.craftbukkit.CraftServer; import org.bukkit.craftbukkit.CraftServer;
import org.bukkit.entity.Squid; import org.bukkit.entity.Squid;
public class CraftSquid extends CraftWaterMob implements Squid { public class CraftSquid extends CraftWaterMob implements Squid {
public CraftSquid(CraftServer server, EntitySquid entity) { public CraftSquid(CraftServer server, EntitySquid entity) {
super(server, entity); super(server, entity);
} }
} }

Datei anzeigen

@ -1,14 +1,14 @@
package org.bukkit.craftbukkit.entity; package org.bukkit.craftbukkit.entity;
import net.minecraft.server.EntityTNTPrimed; import net.minecraft.server.EntityTNTPrimed;
import org.bukkit.craftbukkit.CraftServer; import org.bukkit.craftbukkit.CraftServer;
import org.bukkit.entity.TNTPrimed; import org.bukkit.entity.TNTPrimed;
public class CraftTNTPrimed extends CraftEntity implements TNTPrimed { public class CraftTNTPrimed extends CraftEntity implements TNTPrimed {
public CraftTNTPrimed(CraftServer server, EntityTNTPrimed entity) { public CraftTNTPrimed(CraftServer server, EntityTNTPrimed entity) {
super(server, entity); super(server, entity);
} }
} }

Datei anzeigen

@ -1,14 +1,14 @@
package org.bukkit.craftbukkit.entity; package org.bukkit.craftbukkit.entity;
import net.minecraft.server.EntityWaterMob; import net.minecraft.server.EntityWaterMob;
import org.bukkit.craftbukkit.CraftServer; import org.bukkit.craftbukkit.CraftServer;
import org.bukkit.entity.WaterMob; import org.bukkit.entity.WaterMob;
public class CraftWaterMob extends CraftCreature implements WaterMob { public class CraftWaterMob extends CraftCreature implements WaterMob {
public CraftWaterMob(CraftServer server, EntityWaterMob entity) { public CraftWaterMob(CraftServer server, EntityWaterMob entity) {
super(server, entity); super(server, entity);
} }
} }

Datei anzeigen

@ -1,14 +1,14 @@
package org.bukkit.craftbukkit.entity; package org.bukkit.craftbukkit.entity;
import net.minecraft.server.EntityZombie; import net.minecraft.server.EntityZombie;
import org.bukkit.craftbukkit.CraftServer; import org.bukkit.craftbukkit.CraftServer;
import org.bukkit.entity.Zombie; import org.bukkit.entity.Zombie;
public class CraftZombie extends CraftMonster implements Zombie{ public class CraftZombie extends CraftMonster implements Zombie{
public CraftZombie(CraftServer server, EntityZombie entity) { public CraftZombie(CraftServer server, EntityZombie entity) {
super(server, entity); super(server, entity);
} }
} }