Use vanilla cramming code when possible (#1308)
Improve compatibility with mods that manipulate how cramming works. When the carpet rule is disabled, the vanilla code can be used, allowing features from other mods to work.
This commit is contained in:
1 parent
36c1e8b321
commit
c99c92d1a7
1 file changed
+4
@@ -30,6 +30,10 @@ public abstract class LivingEntity_maxCollisionsMixin extends Entity
|
||||
|
||||
@Inject(method = "pushEntities", cancellable = true, at = @At("HEAD"))
|
||||
private void tickPushingReplacement(CallbackInfo ci) {
|
||||
if (CarpetSettings.maxEntityCollisions == 0)
|
||||
{
|
||||
return;
|
||||
}
|
||||
List<Entity> entities;
|
||||
int maxEntityCramming =-1;
|
||||
if (CarpetSettings.maxEntityCollisions > 0)
|
||||
|
||||
Reference in new issue
Block a user