Skip to content

Commit

Permalink
Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexProgrammerDE committed May 17, 2024
1 parent 4cde6a5 commit 076ed0d
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,3 +1,20 @@
/*
* SoulFire
* Copyright (C) 2024 AlexProgrammerDE
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
package com.soulfiremc.server.protocol;

import com.soulfiremc.util.ResourceHelper;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -279,11 +279,11 @@ public void onRegistry(ClientboundRegistryDataPacket packet) {
var providedData = entry.getData();
NbtMap usedData;
if (providedData == null) {
System.out.println("Searching for " + registryKey + " " + holderKey + " in " + serverKnownPacks);
usedData = BuiltInKnownPackRegistry.INSTANCE.mustFindData(registryKey, holderKey, serverKnownPacks);
} else {
usedData = providedData;
}

registryWriter.register(holderKey, i, usedData);
}
}
Expand Down

0 comments on commit 076ed0d

Please sign in to comment.