mirror of
https://github.com/songoda/SongodaCore.git
synced 2024-12-17 22:17:37 +01:00
Merge branch 'development'
This commit is contained in:
commit
60e013bd96
@ -4,7 +4,7 @@ stages:
|
||||
variables:
|
||||
name: "SongodaCore"
|
||||
path: "/builds/$CI_PROJECT_PATH"
|
||||
version: "2.3.45"
|
||||
version: "2.3.46"
|
||||
|
||||
build:
|
||||
stage: build
|
||||
|
@ -30,7 +30,7 @@ public enum CompatibleMaterial {
|
||||
*/
|
||||
|
||||
/* 1.16 */
|
||||
ANCIENT_DEBRIES(),
|
||||
ANCIENT_DEBRIS(),
|
||||
BASALT(),
|
||||
BLACKSTONE(),
|
||||
BLACKSTONE_STAIRS(),
|
||||
@ -1356,10 +1356,10 @@ public enum CompatibleMaterial {
|
||||
if (ServerVersion.isServerVersionAtLeast(ServerVersion.V1_13)) { // Flattening
|
||||
return CompatibleMaterial.getMaterialFromNewBlock(block);
|
||||
} else { // Pre-Flattening
|
||||
if(block != null){
|
||||
if(block != null) {
|
||||
if (block.getData() != 0) {
|
||||
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()) {
|
||||
return cm;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user