This commit is contained in:
raoulvdberge
2018-04-04 19:16:53 +02:00
parent 959134dd9e
commit 5d78b87609
2 changed files with 8 additions and 0 deletions

View File

@@ -23,6 +23,10 @@ public class GridViewFluid extends GridViewBase {
@Override
public void postChange(IGridStack stack, int delta) {
if (!(stack instanceof GridStackFluid)) {
return;
}
GridStackFluid existing = (GridStackFluid) map.get(stack.getHash());
if (existing == null) {

View File

@@ -28,6 +28,10 @@ public class GridViewItem extends GridViewBase {
@Override
public void postChange(IGridStack stack, int delta) {
if (!(stack instanceof GridStackItem)) {
return;
}
GridStackItem existing = (GridStackItem) map.get(stack.getHash());
if (existing == null) {