--- a/net/minecraft/server/EntitySlice.java +++ b/net/minecraft/server/EntitySlice.java @@ -13,7 +13,7 @@ public class EntitySlice extends AbstractSet { - private static final Set> a = Sets.newHashSet(); + private static final Set> a = Sets.newConcurrentHashSet(); // CraftBukkit private final Map, List> b = Maps.newHashMap(); private final Set> c = Sets.newIdentityHashSet(); private final Class d; @@ -41,7 +41,7 @@ Object object = iterator.next(); if (oclass.isAssignableFrom(object.getClass())) { - this.a(object, oclass); + this.a((T) object, oclass); } } @@ -78,7 +78,7 @@ List list = (List) this.b.get(oclass); if (list == null) { - this.b.put(oclass, Lists.newArrayList(new Object[] { t0})); + this.b.put(oclass, Lists.newArrayList(t0)); } else { list.add(t0); }