Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -1862,12 +1862,11 @@ protected void bL() {
} // Spigot
Entity entity = (Entity) list.get(i);

// TODO better check now?
// CraftBukkit start - Only handle mob (non-player) collisions every other tick
if (entity instanceof EntityLiving && !(this instanceof EntityPlayer) && this.ticksLived % 2 == 0) {
continue;
}
// CraftBukkit end
// CraftBukkit start - Only handle mob (non-player) collisions every other tick
if (entity instanceof EntityLiving && !(this instanceof EntityPlayer) && (MinecraftServer.currentTick & 1) == 0) {
continue;
}
// CraftBukkit end

entity.numCollisions++; // Spigot
numCollisions++; // Spigot
Expand Down