Merge branch 'development'

This commit is contained in:
Brianna 2020-07-30 07:37:01 -05:00
commit 60e013bd96
2 changed files with 4 additions and 4 deletions

View File

@ -4,7 +4,7 @@ stages:
variables: variables:
name: "SongodaCore" name: "SongodaCore"
path: "/builds/$CI_PROJECT_PATH" path: "/builds/$CI_PROJECT_PATH"
version: "2.3.45" version: "2.3.46"
build: build:
stage: build stage: build

View File

@ -30,7 +30,7 @@ public enum CompatibleMaterial {
*/ */
/* 1.16 */ /* 1.16 */
ANCIENT_DEBRIES(), ANCIENT_DEBRIS(),
BASALT(), BASALT(),
BLACKSTONE(), BLACKSTONE(),
BLACKSTONE_STAIRS(), BLACKSTONE_STAIRS(),
@ -1356,10 +1356,10 @@ public enum CompatibleMaterial {
if (ServerVersion.isServerVersionAtLeast(ServerVersion.V1_13)) { // Flattening if (ServerVersion.isServerVersionAtLeast(ServerVersion.V1_13)) { // Flattening
return CompatibleMaterial.getMaterialFromNewBlock(block); return CompatibleMaterial.getMaterialFromNewBlock(block);
} else { // Pre-Flattening } else { // Pre-Flattening
if(block != null){ if(block != null) {
if (block.getData() != 0) { if (block.getData() != 0) {
for (CompatibleMaterial cm : CompatibleMaterial.values()) { for (CompatibleMaterial cm : CompatibleMaterial.values()) {
if (cm.getMaterial().equals(block.getType())) { if (cm.isValidItem() && !cm.usesCompatibility() && cm.getMaterial() != null && cm.getMaterial().equals(block.getType())) {
if (cm.getData() == block.getData()) { if (cm.getData() == block.getData()) {
return cm; return cm;
} }