mirror of
https://github.com/StarWishsama/Slimefun4.git
synced 2024-09-19 19:25:48 +00:00
temporarily diable senstive blocks check (#4077)
Co-authored-by: Daniel Walsh <walshydev@gmail.com>
This commit is contained in:
parent
4d710fa0b1
commit
e33950383c
@ -303,8 +303,11 @@ public class BlockListener implements Listener {
|
||||
* @param count
|
||||
* The amount of times this has been recursively called
|
||||
*/
|
||||
// Disabled for now due to #4069 - Servers crashing due to this check
|
||||
// There is additionally a second bug with `getMaxChainedNeighborUpdates` not existing in 1.17
|
||||
@ParametersAreNonnullByDefault
|
||||
private void checkForSensitiveBlocks(Block block, Integer count, boolean isDropItems) {
|
||||
/*
|
||||
if (count >= Bukkit.getServer().getMaxChainedNeighborUpdates()) {
|
||||
return;
|
||||
}
|
||||
@ -326,6 +329,7 @@ public class BlockListener implements Listener {
|
||||
// Set the BlockData back: this makes it so containers and spawners drop correctly. This is a hacky fix.
|
||||
block.setBlockData(state.getBlockData(), false);
|
||||
state.update(true, false);
|
||||
*/
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user