File tree Expand file tree Collapse file tree
AnarchyExploitFixesFolia/src/main/java/me/xginko/aef/modules/chunklimits
AnarchyExploitFixesLegacy/src/main/java/me/xginko/aef/modules/chunklimits Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -222,7 +222,7 @@ private void onBlockPlace(BlockPlaceEvent event) {
222222 event .getBlock ().getType (),
223223 LocationUtil .toString (event .getBlock ().getLocation ()),
224224 materialCount ,
225- blockLimits . get ( event . getBlock (). getType ()) );
225+ limit );
226226 }
227227
228228 @ SuppressWarnings ("deprecation" )
@@ -275,7 +275,7 @@ private void onPlayerInteract(PlayerInteractEvent event) {
275275 event .getMaterial (),
276276 LocationUtil .toString (placeLocation ),
277277 materialCount ,
278- blockLimits . get ( event . getMaterial ()) );
278+ limit );
279279 }
280280
281281 private int getMaterialCountForChunk (Material blockType , Chunk chunk ) {
Original file line number Diff line number Diff line change @@ -213,7 +213,7 @@ private void onBlockPlace(BlockPlaceEvent event) {
213213 event .getBlock ().getType (),
214214 LocationUtil .toString (event .getBlock ().getLocation ()),
215215 materialCount ,
216- blockLimits . get ( event . getBlock (). getType ()) );
216+ limit );
217217 }
218218
219219 @ EventHandler (priority = EventPriority .HIGHEST , ignoreCancelled = true )
You can’t perform that action at this time.
0 commit comments