Skip to content

Commit

Permalink
Use the PotionID when creating the DataContainer (Close SpongePowered…
Browse files Browse the repository at this point in the history
  • Loading branch information
ImMorpheus committed Jan 14, 2018
1 parent 3537712 commit 9f3ce1b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ public int getContentVersion() {
public DataContainer toContainer() {
return DataContainer.createNew()
.set(Queries.CONTENT_VERSION, getContentVersion())
.set(DataQueries.POTION_TYPE, this.potion.getName())
.set(DataQueries.POTION_TYPE, this.getType().getId())
.set(DataQueries.POTION_DURATION, this.duration)
.set(DataQueries.POTION_AMPLIFIER, this.amplifier)
.set(DataQueries.POTION_AMBIANCE, this.isAmbient)
Expand Down

0 comments on commit 9f3ce1b

Please sign in to comment.