mirror of
https://github.com/Creators-of-Create/Create.git
synced 2024-11-13 05:54:17 +01:00
Merge pull request #6779 from ryanhaney97/fix-rollers-replacing-portals
Fix for #6758: Added check for portal blocks when trying to fill.
This commit is contained in:
commit
c69716bf7e
@ -469,9 +469,10 @@ public class RollerMovementBehaviour extends BlockBreakingMovementBehaviour {
|
|||||||
if (existing.is(toPlace.getBlock()))
|
if (existing.is(toPlace.getBlock()))
|
||||||
return PaveResult.PASS;
|
return PaveResult.PASS;
|
||||||
if (!existing.is(BlockTags.LEAVES) && !existing.getMaterial()
|
if (!existing.is(BlockTags.LEAVES) && !existing.getMaterial()
|
||||||
.isReplaceable()
|
.isReplaceable()
|
||||||
&& !existing.getCollisionShape(level, targetPos)
|
&& (!existing.getCollisionShape(level, targetPos)
|
||||||
.isEmpty())
|
.isEmpty()
|
||||||
|
|| existing.is(BlockTags.PORTALS)))
|
||||||
return PaveResult.FAIL;
|
return PaveResult.FAIL;
|
||||||
|
|
||||||
FilterItemStack filter = context.getFilterFromBE();
|
FilterItemStack filter = context.getFilterFromBE();
|
||||||
|
Loading…
Reference in New Issue
Block a user