mirror of
https://github.com/Creators-of-Create/Create.git
synced 2024-11-10 12:33:57 +01:00
Added check for portal blocks when trying to fill.
This commit is contained in:
parent
2e91e16932
commit
803bf45250
@ -469,9 +469,10 @@ public class RollerMovementBehaviour extends BlockBreakingMovementBehaviour {
|
||||
if (existing.is(toPlace.getBlock()))
|
||||
return PaveResult.PASS;
|
||||
if (!existing.is(BlockTags.LEAVES) && !existing.getMaterial()
|
||||
.isReplaceable()
|
||||
&& !existing.getCollisionShape(level, targetPos)
|
||||
.isEmpty())
|
||||
.isReplaceable()
|
||||
&& (!existing.getCollisionShape(level, targetPos)
|
||||
.isEmpty()
|
||||
|| existing.is(BlockTags.PORTALS)))
|
||||
return PaveResult.FAIL;
|
||||
|
||||
FilterItemStack filter = context.getFilterFromBE();
|
||||
|
Loading…
Reference in New Issue
Block a user